Handle empty database password properly, don't try to run docker-compose inside the container

This commit is contained in:
Jyri-Petteri Paloposki 2020-07-19 21:30:24 +03:00
parent 53c7c94306
commit 85e104006c
7 changed files with 15 additions and 8 deletions

View file

@ -5,6 +5,8 @@ RUN bundle config --global frozen 1
WORKDIR /app
RUN touch /etc/app-env
COPY Gemfile* /app/
RUN gem install bundler
RUN bundle install --jobs 4
@ -17,8 +19,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 ["/app/docker-entrypoint.sh"]
EXPOSE 3000