Skip to content

Commit 462e914

Browse files
committed
Show how to use the Dockerfile directly
1 parent d539810 commit 462e914

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

railties/lib/rails/generators/rails/app/templates/Dockerfile.tt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# syntax = docker/dockerfile:1
22

3-
# Note: This Dockerfile is optimized for production deployment and isn't a good base
4-
# for development enviroments.
3+
# This Dockerfile is designed for production, not development. Use with Kamal or build'n'run by hand:
4+
# docker build -t my-app .
5+
# docker run -d -p 80:80 -p 443:443 --name my-app -e RAILS_MASTER_KEY=<value from config/master.key> my-app
56

67
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
78
ARG RUBY_VERSION=<%= gem_ruby_version %>

0 commit comments

Comments
 (0)