Skip to content

Commit

Permalink
Moving from ARG to ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
spaquet committed Jan 18, 2024
1 parent 54f95f5 commit 8070203
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM ruby:3.3.0-alpine AS builder
ENV RAILS_ENV=production

ARG RAILS_MASTER_KEY
ARG APP_ROLE=web
ARG RAILS_MASTER_KEY

# Add Alpine packages
RUN apk add --no-cache --update \
Expand Down Expand Up @@ -41,26 +40,26 @@ ENV RAILS_ENV=production \
RAILS_LOG_TO_STDOUT=true \
RAILS_SERVE_STATIC_FILES=true \
EXECJS_RUNTIME=Disabled \
RUBY_YJIT_ENABLE=true

ARG DATABASE_POOL \
DATABASE_URL \
DEFAULT_URL \
DISABLE_DATABASE_ENVIRONMENT_CHECK \
DO_ACCESS_KEY_ID \
DO_BUCKET \
DO_ENDPOINT \
DO_SECRET_ACCESS_KEY \
GOOGLE_CLIENT_ID \
GOOGLE_CLIENT_SECRET \
HONEYBADGER_API_KEY \
OPENAI_ACCESS_TOKEN \
OPENAI_ORGANIZATION_ID \
RAILS_MASTER_KEY \
REDISCLOUD_URL \
SENDGRID_API_KEY \
SIDEKIQ_AUTH_PASSWORD \
SIDEKIQ_AUTH_USERNAME
RUBY_YJIT_ENABLE=true \
APP_ROLE=web \
DATABASE_POOL=25 \
DATABASE_URL= \
DEFAULT_URL=demo.thepew.io \
DISABLE_DATABASE_ENVIRONMENT_CHECK=1 \
DO_ACCESS_KEY_ID= \
DO_BUCKET= \
DO_ENDPOINT= \
DO_SECRET_ACCESS_KEY= \
GOOGLE_CLIENT_ID= \
GOOGLE_CLIENT_SECRET= \
HONEYBADGER_API_KEY= \
OPENAI_ACCESS_TOKEN= \
OPENAI_ORGANIZATION_ID= \
RAILS_MASTER_KEY= \
REDISCLOUD_URL= \
SENDGRID_API_KEY= \
SIDEKIQ_AUTH_PASSWORD= \
SIDEKIQ_AUTH_USERNAME=

# Add Alpine packages
RUN apk add --no-cache --update \
Expand Down

0 comments on commit 8070203

Please sign in to comment.