Last active
September 17, 2019 06:15
-
-
Save channainfo/dba63745ae0e3d5a73e8c050455bbdf9 to your computer and use it in GitHub Desktop.
Docker file for rails 4.2.1 with reactrails and yarn
This file contains hidden or 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
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