Skip to content

Commit

Permalink
Fix for multiline key (#28)
Browse files Browse the repository at this point in the history
* composer install without dev packages

* echo multiline into key file
  • Loading branch information
ricklambrechts authored Feb 14, 2024
1 parent 637cd2e commit 8c1510b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
bootstrap/cache/services.php

storage/app/*
storage/framework/cache/*
storage/framework/sessions/*
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docker/scripts/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c1510b

Please sign in to comment.