build: remove condicionamento de ambiente para pré-compilação de assets no Dockerfile.
This commit is contained in:
parent
87e13a8184
commit
bc45591cf3
@ -81,10 +81,9 @@ COPY . /app
|
||||
RUN mkdir -p /app/log
|
||||
|
||||
# generate production assets if production environment
|
||||
RUN if [ "$RAILS_ENV" = "production" ]; then \
|
||||
SECRET_KEY_BASE=precompile_placeholder RAILS_LOG_TO_STDOUT=enabled bundle exec rake assets:precompile \
|
||||
&& rm -rf spec node_modules tmp/cache; \
|
||||
fi
|
||||
# generate production assets
|
||||
RUN SECRET_KEY_BASE=precompile_placeholder RAILS_LOG_TO_STDOUT=enabled bundle exec rake assets:precompile \
|
||||
&& rm -rf spec node_modules tmp/cache
|
||||
|
||||
# Generate .git_sha file with current commit hash
|
||||
RUN echo "wuzapi-v1" > /app/.git_sha
|
||||
|
||||
Loading…
Reference in New Issue
Block a user