mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Better Docker config: Use entrypoint to setup the environment, run in production mode by default, defaults for all config values
This commit is contained in:
parent
67012821e6
commit
3f22c8a036
6 changed files with 42 additions and 59 deletions
|
|
@ -17,9 +17,11 @@ COPY . /app/
|
|||
COPY config/database.docker.yml /app/config/database.yml
|
||||
COPY config/site.docker.yml /app/config/site.yml
|
||||
|
||||
COPY docker-startserver.sh /
|
||||
RUN RAILS_ENV=production bundle exec rake assets:precompile
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
#CMD ["rails", "server", "-e", "production", "-b", "0.0.0.0"]
|
||||
CMD ["./docker-startserver.sh"]
|
||||
CMD ["rails", "server", "-b", "0.0.0.0"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue