From fac7ebf4f691ae25fffe2a289c1a74a1e9d5c360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Acid=20Chicken=20=28=E7=A1=AB=E9=85=B8=E9=B6=8F=29?= Date: Sun, 10 Feb 2019 16:14:48 +0900 Subject: [PATCH] Fix Dockerfile (#4214) * Update Dockerfile * Update Dockerfile --- Dockerfile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7e15967b0..4d7d450f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,15 +23,11 @@ RUN apk add --no-cache \ procps \ python \ zlib-dev -RUN npm i -g node-gyp - -COPY ./package.json ./ -RUN npm i +RUN npm i -g yarn COPY . ./ -RUN node-gyp configure \ - && node-gyp build \ - && npm run build +RUN yarn install +RUN yarn build FROM base AS runner