Skip to content

Instantly share code, notes, and snippets.

@pmallol
Last active July 6, 2020 19:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmallol/0bdbf1abb1d9a0eced7d488f3f9cd7d3 to your computer and use it in GitHub Desktop.
Save pmallol/0bdbf1abb1d9a0eced7d488f3f9cd7d3 to your computer and use it in GitHub Desktop.
Dockerfile to build a docker image with Ruby 2.6 and Node.js
# Dockerfile
FROM ruby:2.6.3
WORKDIR /app
RUN curl -sL https://deb.nodesource.com/setup_13.x -o nodesource_setup.sh && \
bash nodesource_setup.sh && \
apt install nodejs
# Copy Ruby and Node dependencies
COPY Gemfile Gemfile.lock package.json package-lock.json ./
# Install dependencies
RUN bundle install --without debug && npm install
EXPOSE 4567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment