Skip to content

Commit

Permalink
Added debugging to Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
warrenchristian1telus committed Sep 18, 2024
1 parent c4c824a commit 65159a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ USER www-data

WORKDIR ${BUILD_DIR}

# Debugging output
RUN echo "APP_KEY_ARG: $APP_KEY_ARG"
RUN echo "APP_KEY_ARG length: ${#APP_KEY_ARG}"
RUN echo "APP_KEY from .env: $(grep APP_KEY .env)"

# Check if APP_KEY_ARG or APP_KEY is set and valid
RUN if [ -z "$APP_KEY_ARG" ] || ! echo "$APP_KEY_ARG" | grep -Eq '^base64:[A-Za-z0-9+/=]{43}$'; then \
echo "APP_KEY_ARG is not set or invalid ($APP_KEY_ARG). Checking APP_KEY..."; \
Expand Down

0 comments on commit 65159a0

Please sign in to comment.