Convox base image for Ruby on Rails
FROM convox/rails
# copy only the files needed for bundle install
COPY Gemfile /app/Gemfile
COPY Gemfile.lock /app/Gemfile.lock
RUN bundle install
# copy only the files needed for assets:precompile
COPY Rakefile /app/Rakefile
COPY config /app/config
COPY public /app/public
COPY app/assets /app/app/assets
RUN rake assets:precompile
# copy the rest of the app
COPY . /app
Application using this image should:
/app5000.4000 and redirects all requests to https://.4001 accepting PROXY protocol and injecting X-Forwarded-For headers.Using this image in your docker-compose.yml should look something like this:
labels:
- convox.port.443.protocol=tls
- convox.port.443.proxy=true
ports:
- 80:4000
- 443:4001
libmysqld-devlibpq-devlibsqlite3-devruby-devX-Forwarded-Proto and X-Forwarded-For/assets from disk without hitting the Rails appContent type
Image
Digest
Size
275.8 MB
Last updated
about 10 years ago
docker pull stylisted/docker-rails