mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Fix the Docker configuration to work better
This commit is contained in:
parent
8ac330013b
commit
5c94a7c515
4 changed files with 131 additions and 19 deletions
11
Dockerfile
11
Dockerfile
|
|
@ -1,5 +1,8 @@
|
|||
FROM ruby:2.6
|
||||
|
||||
# throw errors if Gemfile has been modified since Gemfile.lock
|
||||
RUN bundle config --global frozen 1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN touch /etc/app-env
|
||||
|
|
@ -11,5 +14,13 @@ RUN bundle install --jobs 4
|
|||
RUN mkdir /app/log
|
||||
|
||||
COPY . /app/
|
||||
COPY config/database.docker.yml /app/config/database.yml
|
||||
COPY config/site.docker.yml /app/config/site.yml
|
||||
|
||||
#COPY docker-entrypoint.sh /
|
||||
#ENTRYPOINT ["/docker-entrypoint.sh"]
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
#CMD ["rails", "server", "-e", "production", "-b", "0.0.0.0"]
|
||||
CMD ["rails", "server", "-b", "0.0.0.0"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue