From fe3f7fce2daac8c9bb7ed85c174055863f740b3c Mon Sep 17 00:00:00 2001 From: Dinis Date: Mon, 17 Aug 2020 19:14:03 +0100 Subject: [PATCH] Update Dockerfile Install Yarn before bundling stuff --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6cf98a2..b78f5f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ FROM ruby:2.5 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 mkdir /myapp WORKDIR /myapp COPY Gemfile /myapp/Gemfile @@ -14,4 +17,4 @@ ENTRYPOINT ["entrypoint.sh"] EXPOSE 3000 # Start the main process. -CMD ["rails", "server", "-b", "0.0.0.0"] \ No newline at end of file +CMD ["rails", "server", "-b", "0.0.0.0"]