Skip to content

Commit

Permalink
Update Dockerfile tempalte to add = when define ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
elct9620 committed Sep 11, 2024
1 parent 024ffd4 commit 64bb2a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/Dockerfile.tt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ FROM ruby:${RUBY_VERSION}-alpine as assets
ARG APP_ROOT
ARG RAILS_MASTER_KEY

ENV RAILS_MASTER_KEY $RAILS_MASTER_KEY
ENV RAILS_MASTER_KEY=$RAILS_MASTER_KEY

<%- if packages.select(&:runtime?).any? -%>
RUN apk add --no-cache <%= packages.select(&:runtime?).join(' ') %> yarn
Expand All @@ -47,7 +47,7 @@ COPY --from=base ${APP_ROOT}/vendor/bundle ${APP_ROOT}/vendor/bundle
RUN mkdir -p ${APP_ROOT}
COPY . ${APP_ROOT}

ENV RAILS_ENV production
ENV RAILS_ENV=production
WORKDIR ${APP_ROOT}
RUN bundle exec rake assets:precompile

Expand Down Expand Up @@ -81,14 +81,14 @@ COPY . ${APP_ROOT}
<%- if config.revision -%>

ARG REVISION
ENV REVISION $REVISION
ENV COMMIT_SHORT_SHA $REVISION
ENV REVISION=$REVISION
ENV COMMIT_SHORT_SHA=$REVISION
RUN echo "${REVISION}" > ${APP_ROOT}/REVISION
<%- end -%>
<%- if config.sentry_release -%>

ARG SENTRY_RELEASE
ENV SENTRY_RELEASE $SENTRY_RELEASE
ENV SENTRY_RELEASE=$SENTRY_RELEASE
<%- end -%>

# Apply Execute Permission
Expand Down

0 comments on commit 64bb2a0

Please sign in to comment.