From 112a72abdfb78f8f6c76891e721029f4dc87d5c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=B2=E3=82=8F=E3=81=974=EF=BC=88=E3=83=90?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B31=EF=BC=89?= Date: Thu, 18 Apr 2019 01:09:31 +0900 Subject: [PATCH] Docker: Back to npm from yarn (#4730) This commit reverts "Fix Dockerfile #4214" which uses yarn instead of npm. The cause of the build error is that binding.gyp and src/crypto_key.cc are missing when installing dependencies. In other words, yarn did not fix build error. There is no reason to use yarn, so go back to npm. --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec7d8a6a2..be2768033 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,12 +21,11 @@ RUN apk add --no-cache \ pkgconfig \ python \ zlib-dev -RUN npm i -g yarn COPY package.json ./ -RUN yarn install +RUN npm i COPY . ./ -RUN yarn build +RUN npm run build FROM base AS runner