From 53df8ba76cc8aa16cc3dc65e503e3cbd4d8b4363 Mon Sep 17 00:00:00 2001 From: philipstanislaus <6912756+philipstanislaus@users.noreply.github.com> Date: Mon, 3 Feb 2020 15:02:03 +0100 Subject: [PATCH] =?UTF-8?q?Change=20dockerfile=20to=20use=20local=20versio?= =?UTF-8?q?n=20as=20opposed=20to=20cloning=20polkadot=E2=80=A6=20(#2225)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Change dockerfile to use local version as opposed to cloning polkadot-js/apps * Update Dockerfile Co-authored-by: Jaco Greeff --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e728afda0cfd..f1afd8f98b3a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,9 @@ RUN apt-get update && apt-get install -y curl git gnupg RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - RUN apt-get install -y nodejs -WORKDIR /app -RUN git clone https://github.com/polkadot-js/apps +WORKDIR /apps +COPY . . -WORKDIR /app/apps RUN npm install yarn -g RUN yarn RUN NODE_ENV=production yarn build @@ -19,7 +18,7 @@ FROM ubuntu:18.04 RUN apt-get update && apt-get -y install nginx -COPY --from=builder /app/apps/packages/apps/build /var/www/html +COPY --from=builder /apps/packages/apps/build /var/www/html EXPOSE 80