Skip to content

Instantly share code, notes, and snippets.

@channainfo
Last active September 17, 2019 06:15
Show Gist options
  • Save channainfo/dba63745ae0e3d5a73e8c050455bbdf9 to your computer and use it in GitHub Desktop.
Save channainfo/dba63745ae0e3d5a73e8c050455bbdf9 to your computer and use it in GitHub Desktop.
Docker file for rails 4.2.1 with reactrails and yarn
FROM ruby:2.3
LABEL maintainer="Channa <[email protected]>"
# Updating nodejs version
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash
# Install dependencies
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential mysql-client nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /app
COPY Gemfile /app/
COPY Gemfile.lock /app/
RUN bundle install
# Install the application
COPY . /app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment