From 9a6b4862a343c16ac3e4e33b54d174e0dd1b48ae Mon Sep 17 00:00:00 2001 From: Dinis Date: Wed, 9 Sep 2020 11:41:11 +0100 Subject: [PATCH] update apt only once --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cfe4fc4..cf8e630 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,7 @@ FROM ruby:2.6 -RUN apt-get update -qq && apt-get install -y nodejs postgresql-client RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list -RUN apt update && apt install yarn +RUN apt-get update -qq && apt-get install -y nodejs postgresql-client yarn RUN mkdir /myapp WORKDIR /myapp COPY Gemfile /myapp/Gemfile