Skip to content

Instantly share code, notes, and snippets.

@samuelloza
Last active March 27, 2020 00:33
Show Gist options
  • Save samuelloza/85e571d940c0832b60021afd53254579 to your computer and use it in GitHub Desktop.
Save samuelloza/85e571d940c0832b60021afd53254579 to your computer and use it in GitHub Desktop.
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