Skip to content

Commit

Permalink
update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lislis committed Jan 15, 2019
1 parent 658ffa5 commit cf54772
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ yarn-error.log
/config/database.yml.local
/config/database.yml.travis
/config/database.yml
/postgres-vol
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.5.3-slim-stretch
FROM ruby:2.6-slim-stretch

RUN apt-get update \
&& apt-get install -qq -y build-essential libpq-dev curl wget gnupg2 vim \
Expand All @@ -9,15 +9,15 @@ RUN apt-get update \
&& apt-get update \
&& apt-get install -qq -y nodejs yarn \
&& apt-get clean \
&& rm -f /var/lib/apt/lists/*_*
&& rm -f /var/lib/apt/lists/*_* \
&& mkdir -p /app

RUN mkdir -p /app
WORKDIR /app

COPY Gemfile Gemfile.lock ./
COPY config/database.yml.example ./config/database.yml

RUN gem install bundler && bundle install --jobs 20 --retry 5 --without test \
RUN bundle install \
&& yarn install \
&& bundle exec rails assets:precompile

Expand Down

0 comments on commit cf54772

Please sign in to comment.