Skip to content

Commit

Permalink
add env vars to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
KenLSM committed Mar 4, 2024
1 parent 3747f92 commit 2237b65
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-eb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
APP_VERSION=${{env.APP_VERSION}}
APP_URL=${{secrets.APP_URL}}
REPO_URL=${{github.server_url}}/${{github.repository}}
DD_GIT_REPOSITORY_URL=${{github.server_url}}/${{github.repository}}
DD_GIT_COMMIT_SHA=${{github.sha}}
secrets: |
"dd_api_key=${{ secrets.DD_API_KEY }}"
Expand Down
7 changes: 6 additions & 1 deletion Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ COPY . ./
# These options are only used in the build stage, not the start stage.
ENV NODE_OPTIONS="--max-old-space-size=4096 --openssl-legacy-provider"

ARG DD_GIT_REPOSITORY_URL
ARG DD_GIT_COMMIT_SHA
ENV DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL}
ENV DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA}

RUN npm run build

ARG APP_VERSION
Expand Down Expand Up @@ -81,7 +86,7 @@ RUN mv /opt/formsg/dist/backend/shared /opt/formsg/
# https://www.npmjs.com/package/puppeteer-core?activeTab=versions for corresponding versions

RUN apk add --no-cache \
# Compatible chromium versions can be found here https://pkgs.alpinelinux.org/packages?name=chromium&branch=v3.18&repo=&arch=&maintainer=
# Compatible chromium versions can be found here https://pkgs.alpinelinux.org/packages?name=chromium&branch=v3.18&repo=&arch=&maintainer=
chromium=119.0.6045.159-r0 \
nss \
freetype \
Expand Down

0 comments on commit 2237b65

Please sign in to comment.