The darthjee/production_ruby_node image is the production counterpart of darthjee/ruby_node, without development dependencies. It is a parallel image built on top of darthjee/production_ruby_331, and adds Node.js and npm to support front-end asset compilation or server-side JavaScript execution in production environments.
The image runs as the app user (uid 1000), with /home/app/app as the working directory, owned by app.
On top of everything provided by darthjee/production_ruby_331, this image installs:
Reference this image in your production Dockerfile (see the available tags at https://hub.docker.com/r/darthjee/production_ruby_node/tags), installing only the main dependencies:
FROM darthjee/production_ruby_node:<version>
COPY --chown=app:app Gemfile Gemfile.lock package.json package-lock.json ./
RUN bundle config set without 'development test' && \
bundle install && \
npm install --omit=dev
See the LICENSE file for more information.
Content type
Image
Digest
sha256:5031de55f…
Size
475.5 MB
Last updated
4 days ago
docker pull darthjee/production_ruby_node