vicinitycommerce/nginx-passenger Docker image.
In your Dockerfile:
FROM vicinitycommerce/nginx-passenger
ADD YOUR_ENVIRONMENT_VARIABLES.conf /etc/nginx/main.d/
ADD YOUR_NGINX_APP_CONFIG /etc/nginx/sites-enabled/
# ...Put your Rails build instructions here...
# Expose HTTP and HTTPS ports
EXPOSE 80 443
CMD 'nginx'
Build the dockerfile, then:
docker run -e RAILS_ENV=production YOUR_IMAGE
Content type
Image
Digest
sha256:9fd21c137…
Size
187.1 MB
Last updated
almost 11 years ago
docker pull vicinitycommerce/nginx-passenger