Skip to content

Commit

Permalink
curator: add RECAPTCHA environment variable in build #2897
Browse files Browse the repository at this point in the history
RECAPTCHA_SITE_KEY can be made public, only the SECRET_KEY should
not be published.
  • Loading branch information
abhidg committed Oct 17, 2022
1 parent 93e2dc8 commit b8fd1b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion verification/curator-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ENV REACT_APP_PUBLIC_MAPBOX_TOKEN "pk.eyJ1IjoiaGVhbHRobWFwIiwiYSI6ImNrYzNjczdmcz
# Set the Iubenda policy and cookie consent IDs. These are public so fine to be checked-in an image.
ENV REACT_APP_POLICY_PUBLIC_ID "89575059"
ENV REACT_APP_COOKIE_CONSENT_PUBLIC_ID "2070778"
ENV REACT_APP_RECAPTCHA_SITE_KEY "6LdhjvwgAAAAALrxavR_zR58kxxap07D4ba8X-jE"

RUN npm run build

Expand Down Expand Up @@ -73,4 +74,4 @@ ENV CURATOR_VERSION=${CURATOR_VERSION:-unset}

# Start service, do not use npm start instead invoke node directly
# to avoid wrapping the process uselessly and correctly catch SIGTERM and SIGINT.
CMD [ "node", "dist/server.js" ]
CMD [ "node", "dist/server.js" ]

0 comments on commit b8fd1b7

Please sign in to comment.