Skip to content
Snippets Groups Projects
Commit c747b60d authored by iaibrys's avatar iaibrys
Browse files

Use VOLUME instead of add for the demo.

parent 9bd3cc4b
Branches demo1
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ RUN dnf -y install git ...@@ -14,7 +14,7 @@ RUN dnf -y install git
# required by letsencrypt. if it's not present, the SSL connection to the let's encrypt server will fail # required by letsencrypt. if it's not present, the SSL connection to the let's encrypt server will fail
RUN dnf -y install openssl RUN dnf -y install openssl
RUN mkdir -p /dtu-quiz/app #RUN mkdir -p /dtu-quiz/app
WORKDIR /dtu-quiz/app WORKDIR /dtu-quiz/app
RUN gem install foreman RUN gem install foreman
...@@ -23,13 +23,14 @@ RUN pwd ...@@ -23,13 +23,14 @@ RUN pwd
CMD ["sh","-c", "./run-server.sh"] CMD ["sh","-c", "./run-server.sh"]
# Install the necessary gems # Install the necessary gems
COPY Gemfile /dtu-quiz/app/Gemfile #COPY Gemfile /dtu-quiz/app/Gemfile
COPY Gemfile.lock /dtu-quiz/app/Gemfile.lock #COPY Gemfile.lock /dtu-quiz/app/Gemfile.lock
RUN bundle install #RUN pwd && ls -als
#RUN bundle install
# Copy application code to container # Copy application code to container
COPY . /dtu-quiz/app #COPY . /dtu-quiz/app
RUN rm -rf tmp #RUN rm -rf tmp
RUN rm -rf log #RUN rm -rf log
RUN mkdir tmp #RUN mkdir tmp
RUN mkdir log #RUN mkdir log
...@@ -333,6 +333,3 @@ DEPENDENCIES ...@@ -333,6 +333,3 @@ DEPENDENCIES
underscore-rails underscore-rails
web-console (~> 2.0) web-console (~> 2.0)
websocket-rails (= 0.7.0) websocket-rails (= 0.7.0)
BUNDLED WITH
1.10.6
...@@ -32,5 +32,7 @@ quiz: ...@@ -32,5 +32,7 @@ quiz:
- "3000" - "3000"
links: links:
- mongodb:db - mongodb:db
volumes:
- .:/dtu-quiz/app
environment: environment:
RAILS_ENV: 'production' RAILS_ENV: 'production'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment