From dbf39c1b75d6340db1474419abb9ac83c6311c2a Mon Sep 17 00:00:00 2001 From: Nauris Linde Date: Fri, 27 Jul 2018 00:26:07 +0300 Subject: [PATCH] Use non-root user to avoid permission issues with Linux OS --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index badb1404..7827d1f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,7 @@ RUN apk add --no-cache g++ git wget gnupg openssh-client supervisor jpegoptim op RUN apk add --no-cache nodejs yarn -RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ No newline at end of file +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +RUN adduser -D portfolio +USER portfolio \ No newline at end of file