build: remove condicionamento de ambiente para pré-compilação de assets no Dockerfile.

This commit is contained in:
Rodrigo Borba 2026-01-04 20:38:49 -03:00
parent 87e13a8184
commit bc45591cf3

View File

@ -81,10 +81,9 @@ COPY . /app
RUN mkdir -p /app/log RUN mkdir -p /app/log
# generate production assets if production environment # generate production assets if production environment
RUN if [ "$RAILS_ENV" = "production" ]; then \ # generate production assets
SECRET_KEY_BASE=precompile_placeholder RAILS_LOG_TO_STDOUT=enabled bundle exec rake assets:precompile \ RUN SECRET_KEY_BASE=precompile_placeholder RAILS_LOG_TO_STDOUT=enabled bundle exec rake assets:precompile \
&& rm -rf spec node_modules tmp/cache; \ && rm -rf spec node_modules tmp/cache
fi
# Generate .git_sha file with current commit hash # Generate .git_sha file with current commit hash
RUN echo "wuzapi-v1" > /app/.git_sha RUN echo "wuzapi-v1" > /app/.git_sha