Skip to content

Commit

Permalink
add build args in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaellaude committed Oct 22, 2024
1 parent 2136aef commit f7934ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
NEXT_PUBLIC_API_URL=https://districtr-v2-api.fly.dev
NEXT_PUBLIC_S3_BUCKET_URL=https://districtr-v2-dev.s3.amazonaws.com
2 changes: 2 additions & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ RUN apt-get update -qq && \
# Install node modules
COPY --link package-lock.json package.json ./
RUN npm ci --include=dev
RUN echo NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL\\nNEXT_PUBLIC_S3_BUCKET_URL=https://districtr-v2-dev.s3.amazonaws.com
RUN echo NEXT_PUBLIC_API_URL=$NEXT_PUBLIC_API_URL\\nNEXT_PUBLIC_S3_BUCKET_URL=https://districtr-v2-dev.s3.amazonaws.com > .env.production

# Copy application code
COPY --link . .
Expand Down

0 comments on commit f7934ec

Please sign in to comment.