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 https://0xacab.org/schleuder/schleuder-web.git /opt/schleuder-web ...@@ -17,10 +17,13 @@ RUN git clone https://0xacab.org/schleuder/schleuder-web.git /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 entrypoint.sh /sbin/entrypoint.sh COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod a+x /sbin/entrypoint.sh RUN chmod a+x /sbin/entrypoint.sh
WORKDIR /opt/schleuder-web WORKDIR /opt/schleuder-web
EXPOSE 3000 EXPOSE 3000
ENTRYPOINT ["/sbin/entrypoint.sh"] ENTRYPOINT ["/sbin/entrypoint.sh"]
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