Skip to content

Commit

Permalink
fix: docker-compose mandates COMMIT_HASH arg
Browse files Browse the repository at this point in the history
  • Loading branch information
y-young committed Apr 11, 2023
1 parent fc2366d commit 3176a68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ COPY react/ .

RUN mkdir /app/public

ARG COMMIT_HASH=unknown
ARG COMMIT_HASH
ARG VITE_SENTRY_DSN

ENV COMMIT_HASH=$COMMIT_HASH
ENV COMMIT_HASH=${COMMIT_HASH:-"unknown"}
ENV VITE_SENTRY_DSN=$VITE_SENTRY_DSN

RUN pnpm build
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ services:
dockerfile: ./Dockerfile
target: production
args:
- VITE_SENTRY_DSN
- COMMIT_HASH
VITE_SENTRY_DSN: ${VITE_SENTRY_DSN:-}
COMMIT_HASH: ${COMMIT_HASH:-}
volumes:
- ./config:/var/www/html/config
- storage:/var/www/html/storage
Expand Down

0 comments on commit 3176a68

Please sign in to comment.