Last active
March 27, 2020 00:33
-
-
Save samuelloza/85e571d940c0832b60021afd53254579 to your computer and use it in GitHub Desktop.
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 circleci/ruby:2.6.3-stretch-node | |
USER root | |
RUN apt-get update -qq \ | |
&& apt-get install -y --no-install-recommends \ | |
build-essential \ | |
libpq-dev \ | |
nodejs \ | |
wget \ | |
postgresql-client \ | |
&& rm -rf /var/lib/apt/lists/*t | |
RUN mkdir /mnt/rails | |
COPY Gemfile /mnt/rails/ | |
COPY Gemfile.lock /mnt/rails/ | |
WORKDIR /mnt/rails | |
# Bundle install | |
COPY . /mnt/rails | |
RUN gem install bundler -v 2.1.4 | |
RUN yarn install --check-files | |
RUN bundle install | |
EXPOSE 5000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment