mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Fix docker file to use rails_env=production on precompile (#315)
* Fix docker file to use rails_env=production on precompile * Fix docker file for prod deployment
This commit is contained in:
@@ -20,9 +20,11 @@ RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
|
||||
ENV RAILS_SERVE_STATIC_FILES true
|
||||
ENV RAILS_ENV=production
|
||||
|
||||
RUN bundle
|
||||
RUN yarn
|
||||
RUN bundle exec rake assets:precompile
|
||||
RUN SECRET_KEY_BASE=precompile_placeholder bundle exec rake assets:precompile
|
||||
|
||||
# Add a script to be executed every time the container starts.
|
||||
COPY ./docker/entrypoint.sh /usr/bin/
|
||||
|
||||
Reference in New Issue
Block a user