diff --git a/.dockerignore b/.dockerignore index af5a211..62507f2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,3 @@ -bootstrap/cache/services.php - storage/app/* storage/framework/cache/* storage/framework/sessions/* diff --git a/docker/Dockerfile b/docker/Dockerfile index 7cd9167..d4a40ce 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,7 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer WORKDIR /app COPY . /app -RUN composer install +RUN composer install --no-dev --no-interaction --no-progress --no-suggest --no-scripts --optimize-autoloader EXPOSE 8000 CMD /app/docker/scripts/startup.sh diff --git a/docker/scripts/startup.sh b/docker/scripts/startup.sh index 83d18a8..1c23b0b 100755 --- a/docker/scripts/startup.sh +++ b/docker/scripts/startup.sh @@ -19,7 +19,7 @@ if [ -n "$OIDC_DECRYPTION_KEY_CONTENT" ]; then fi # if so, write it to a file - echo $OIDC_DECRYPTION_KEY_CONTENT > $APP_DIR/secrets/oidc-decryption-key.pem + echo "$OIDC_DECRYPTION_KEY_CONTENT" > $APP_DIR/secrets/oidc-decryption-key.pem # set OIDC_DECRYPTION_KEY_PATH OIDC_DECRYPTION_KEY_PATH=$APP_DIR/secrets/oidc-decryption-key.pem