fixup Dockerfile

This commit is contained in:
3nprob 2021-10-07 02:47:31 +09:00
parent aba74e1abc
commit 9d769b2360

View File

@ -1,8 +1,12 @@
FROM node:16-slim as builder FROM node:16-slim as builder
COPY . /app RUN mkdir /app
COPY package.json /app/
COPY package-lock.json /app/
WORKDIR /app WORKDIR /app
RUN npm ci && npm run build RUN npm ci
COPY . /app
RUN npm run build
FROM node:16-slim FROM node:16-slim