Add control for UID and GID

This commit is contained in:
2024-01-23 18:44:05 -06:00
parent 17107bd7bb
commit 7b1cf05fe8
3 changed files with 29 additions and 2 deletions

View File

@@ -30,7 +30,8 @@ RUN apk --no-cache add \
${PHP_VER}-tokenizer \
${PHP_VER}-xmlwriter \
${PHP_VER}-zip \
${PHP_VER}-zlib && \
${PHP_VER}-zlib \
shadow && \
mkdir -p \
/app \
/run/nginx \
@@ -50,6 +51,7 @@ RUN apk --no-cache add yarn && \
tar -xzvf panel.tar.gz && \
rm panel.tar.gz && \
chmod -R 755 storage/* bootstrap/cache && \
rm -rf /app/storage/logs && \
find storage -type d > .storage.tmpl && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
cp .env.example .env && \
@@ -58,7 +60,7 @@ RUN apk --no-cache add yarn && \
yarn install --production && \
yarn add cross-env && \
yarn run build:production && \
rm -rf node_modules .env ./storage
rm -rf node_modules .env storage
FROM base AS release
WORKDIR /app