Skip to content

Commit a9f4973

Browse files
committed
run server from dockerfile
1 parent 93877a5 commit a9f4973

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,8 @@ RUN bundle install && \
5353
# using `-p 3000:3000/tcp` in Docker's CLI or `- "3000:3000"` in the in docker-compose.yml service's ports[].
5454
# https://docs.docker.com/engine/reference/builder/#expose
5555
EXPOSE 3000/tcp
56+
57+
# Finally, start the server!
58+
RUN rake db:migrate && \
59+
rm -f tmp/pids/server.pid && \
60+
rails server -b 0.0.0.0

0 commit comments

Comments
 (0)