diff --git a/docker/Dockerfile b/docker/Dockerfile index ecc5b4a..dfbfcae 100755 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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