Skip to content

Commit

Permalink
add env vars to api docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeh committed Oct 14, 2024
1 parent 483fd30 commit b9648f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ ARG RESET_PASSWORD_TOKEN_SECRET
ARG RESET_PASSWORD_TOKEN_EXPIRES_IN

Check warning on line 11 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Build API image and push to Amazon ECR

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "RESET_PASSWORD_TOKEN_EXPIRES_IN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ARG EMAIL_CONFIRMATION_TOKEN_SECRET

Check warning on line 12 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Build API image and push to Amazon ECR

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "EMAIL_CONFIRMATION_TOKEN_SECRET") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ARG EMAIL_CONFIRMATION_TOKEN_EXPIRES_IN

Check warning on line 13 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Build API image and push to Amazon ECR

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "EMAIL_CONFIRMATION_TOKEN_EXPIRES_IN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ARG SIGN_UP_TOKEN_SECRET

Check warning on line 14 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Build API image and push to Amazon ECR

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "SIGN_UP_TOKEN_SECRET") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ARG SIGN_UP_TOKEN_EXPIRES_IN

Check warning on line 15 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Build API image and push to Amazon ECR

Sensitive data should not be used in the ARG or ENV commands

SecretsUsedInArgOrEnv: Do not use ARG or ENV instructions for sensitive data (ARG "SIGN_UP_TOKEN_EXPIRES_IN") More info: https://docs.docker.com/go/dockerfile/rule/secrets-used-in-arg-or-env/
ARG AWS_SES_ACCESS_KEY_ID
ARG AWS_SES_ACCESS_KEY_SECRET
ARG AWS_SES_DOMAIN
Expand All @@ -27,6 +29,8 @@ ENV RESET_PASSWORD_TOKEN_SECRET $RESET_PASSWORD_TOKEN_SECRET
ENV RESET_PASSWORD_TOKEN_EXPIRES_IN $RESET_PASSWORD_TOKEN_EXPIRES_IN

Check warning on line 29 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Build API image and push to Amazon ECR

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
ENV EMAIL_CONFIRMATION_TOKEN_SECRET $EMAIL_CONFIRMATION_TOKEN_SECRET
ENV EMAIL_CONFIRMATION_TOKEN_EXPIRES_IN $EMAIL_CONFIRMATION_TOKEN_EXPIRES_IN
ENV SIGN_UP_TOKEN_SECRET $SIGN_UP_TOKEN_SECRET
ENV SIGN_UP_TOKEN_EXPIRES_IN $SIGN_UP_TOKEN_EXPIRES_IN
ENV AWS_SES_ACCESS_KEY_ID $AWS_SES_ACCESS_KEY_ID
ENV AWS_SES_ACCESS_KEY_SECRET $AWS_SES_ACCESS_KEY_SECRET
ENV AWS_SES_DOMAIN $AWS_SES_DOMAIN

Check warning on line 36 in api/Dockerfile

View workflow job for this annotation

GitHub Actions / Build API image and push to Amazon ECR

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/
Expand Down

0 comments on commit b9648f4

Please sign in to comment.