Skip to content

Commit 013a832

Browse files
committed
try using puma
1 parent 23c7f4a commit 013a832

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

Dockerfile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,20 @@ RUN bundle install && \
5454
# This does not actually expose the port, you'll have to expose it yourself by
5555
# using `-p 3000:3000/tcp` in Docker's CLI or `- "3000:3000"` in the in docker-compose.yml service's ports[].
5656
# https://docs.docker.com/engine/reference/builder/#expose
57-
EXPOSE 3000/tcp
57+
#EXPOSE 3000/tcp
5858

5959
# Finally, start the server!
60-
CMD rails server -b 0.0.0.0
60+
#CMD rails server -b 0.0.0.0
61+
62+
63+
64+
# This image should expose port 80.
65+
EXPOSE 80/tcp
66+
67+
# Finally, start the server using Puma!
68+
CMD bundle exec puma -C config/puma.rb -e ${RAILS_ENV} -b tcp://0.0.0.0:80
69+
70+
71+
72+
# And run it with
73+
# docker run --name nb-webserver -p 80:3000 -d notebookai

0 commit comments

Comments
 (0)