updated Dockerfile

This commit is contained in:
Marvin Zhang
2022-06-03 19:26:28 +08:00
parent a98e2a7085
commit ad031e0347
5 changed files with 18 additions and 32 deletions

View File

@@ -1,4 +1,4 @@
FROM node:12
FROM node:12 AS build
ADD . /app
WORKDIR /app
@@ -6,3 +6,8 @@ RUN rm /app/.npmrc
# install frontend
RUN yarn install && yarn run build:docker
FROM alpine:3.14
# copy files
COPY --from=build /app/dist /app/dist