Skip to content

Commit

Permalink
split server to container runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
drusepth committed May 3, 2023
1 parent a9f4973 commit 23c7f4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ RUN bundle install && \
echo "Compiling webpack assets..." && \
rails webpacker:compile ; \
fi && \
rails db:setup
rails db:setup && \
rake db:migrate && \
rm -f tmp/pids/server.pid

# This image should expose the port 3000.
# This does not actually expose the port, you'll have to expose it yourself by
Expand All @@ -55,6 +57,4 @@ RUN bundle install && \
EXPOSE 3000/tcp

# Finally, start the server!
RUN rake db:migrate && \
rm -f tmp/pids/server.pid && \
rails server -b 0.0.0.0
CMD rails server -b 0.0.0.0

0 comments on commit 23c7f4a

Please sign in to comment.