Fix Dockerfile (#4214)

* Update Dockerfile

* Update Dockerfile
This commit is contained in:
Acid Chicken (硫酸鶏) 2019-02-10 16:14:48 +09:00 committed by GitHub
parent 22c9322928
commit 22dd220c6d

View file

@ -23,15 +23,11 @@ RUN apk add --no-cache \
procps \ procps \
python \ python \
zlib-dev zlib-dev
RUN npm i -g node-gyp RUN npm i -g yarn
COPY ./package.json ./
RUN npm i
COPY . ./ COPY . ./
RUN node-gyp configure \ RUN yarn install
&& node-gyp build \ RUN yarn build
&& npm run build
FROM base AS runner FROM base AS runner