Update Dockerfile

This commit is contained in:
Ari Timonen 2019-10-09 22:04:09 +03:00
parent 82d1dc7355
commit d27e72b6e4
2 changed files with 4 additions and 2 deletions

View file

@ -30,7 +30,8 @@ RUN bundle config github.https true; cd /var/www && bundle install --path /var/b
RUN bundle exec rake assets:precompile
# This is a temporary solution to fix assets issue
RUN mv /var/www/public/assets /home/web/assets
USER root
RUN mv /var/www/public/assets /home/web/assets
CMD ["/var/www/script/entry.sh"]

View file

@ -4,7 +4,7 @@ services:
web:
image: ensl/ensl.org:latest
volumes:
- "./public:/var/www/public"
- "../public:/var/www/public"
ports:
- "4000:4000"
depends_on:
@ -13,6 +13,7 @@ services:
# - redis
db:
image: mariadb:latest
command: mysqld
volumes:
- "./db_data:/var/lib/mysql"
- "./ext/mysql.conf.d:/etc/mysql/conf.d"