Last active
July 6, 2020 19:14
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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