A few more fixes in hope of fixing the Docker Compose

This commit is contained in:
Jyri-Petteri Paloposki 2020-07-19 18:07:23 +03:00
parent 2e40879123
commit 53c7c94306
2 changed files with 4 additions and 1 deletions

View file

@ -18,7 +18,7 @@ COPY config/site.docker.yml /app/config/site.yml
RUN RAILS_ENV=production bundle exec rake assets:precompile
COPY docker-entrypoint.sh /
ENTRYPOINT ["./docker-entrypoint.sh"]
ENTRYPOINT ["/docker-entrypoint.sh"]
EXPOSE 3000

View file

@ -2,6 +2,9 @@
set -e
# Find our app dir
appdir=$(cd $(dirname "$0")/.. && pwd)
# Check if we've been told to run the command in Docker Composer.
cmd="$@"; [ "$#" -eq 0 ] && cmd=bash
export VOLUME="$appdir:/app"