Commit b0d698fe authored by Michał 'rysiek' Woźniak's avatar Michał 'rysiek' Woźniak
Browse files

testing asset precompilation in the dockerfile

parent 2e4bcef8
...@@ -17,10 +17,13 @@ RUN git clone /opt/schleuder-web ...@@ -17,10 +17,13 @@ RUN git clone /opt/schleuder-web
# remove the default config files # remove the default config files
RUN rm /opt/schleuder-web/config/schleuder-web.yml /opt/schleuder-web/config/secrets.yml /opt/schleuder-web/config/database.yml RUN rm /opt/schleuder-web/config/schleuder-web.yml /opt/schleuder-web/config/secrets.yml /opt/schleuder-web/config/database.yml
# precompile assets
RUN cd /opt/schleuder-web && RAILS_ENV=production bundle exec rake assets:precompile
COPY /sbin/ COPY /sbin/
RUN chmod a+x /sbin/ RUN chmod a+x /sbin/
WORKDIR /opt/schleuder-web WORKDIR /opt/schleuder-web
ENTRYPOINT ["/sbin/"] ENTRYPOINT ["/sbin/"]
CMD ["bundle", "exec", "rails", "server", "-b", "$WEBSCHLOCKER_BIND_ADDRESS", "-p", "$WEBSCHLOCKER_BIND_PORT", "-e", "production"] CMD ["bundle", "exec", "rails", "server", "-b", "$WEBSCHLOCKER_BIND_ADDRESS", "-p", "$WEBSCHLOCKER_BIND_PORT", "-e", "production"]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment