We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9f4973 commit 23c7f4aCopy full SHA for 23c7f4a
Dockerfile
@@ -46,7 +46,9 @@ RUN bundle install && \
46
echo "Compiling webpack assets..." && \
47
rails webpacker:compile ; \
48
fi && \
49
- rails db:setup
+ rails db:setup && \
50
+ rake db:migrate && \
51
+ rm -f tmp/pids/server.pid
52
53
# This image should expose the port 3000.
54
# This does not actually expose the port, you'll have to expose it yourself by
@@ -55,6 +57,4 @@ RUN bundle install && \
55
57
EXPOSE 3000/tcp
56
58
59
# Finally, start the server!
-RUN rake db:migrate && \
- rm -f tmp/pids/server.pid && \
60
- rails server -b 0.0.0.0
+CMD rails server -b 0.0.0.0
0 commit comments