From cb33e95be22afc94c11a435fc9e5a0be56c5bca0 Mon Sep 17 00:00:00 2001 From: iv1310 Date: Wed, 3 Apr 2024 20:04:48 +0700 Subject: [PATCH] chore: add multi-stage. --- docker/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4c7dcb25..473c51a1 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine3.16 as builder +FROM node:16-alpine3.16 as dependencies ARG GH_BACKEND_URL ARG GH_IPFS_URL @@ -16,6 +16,8 @@ COPY package.json yarn.lock* ./ RUN yarn install +FROM dependencies as builder + COPY . . RUN set -x \