Improve docker scripts

This commit is contained in:
riccardo
2019-09-22 15:52:53 +02:00
parent 31828d48ba
commit 3ce611374b
6 changed files with 22 additions and 11 deletions

View File

@@ -14,10 +14,12 @@ WORKDIR /app
# Launch processes in Procfile
RUN gem install foreman
COPY Gemfile /app/Gemfile
COPY Gemfile.lock /app/Gemfile.lock
# Copy Gemfile and install gems
COPY Gemfile* /app/
RUN bundle install
# Copy package.json and install packages
COPY package.json yarn.lock /app/
RUN yarn install --check-files
COPY . /app