diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 6e9e1fae..9fb35733 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,11 +1,13 @@ -FROM node:12 AS build +FROM node:14 AS build ADD . /app WORKDIR /app RUN rm /app/.npmrc # install frontend -RUN yarn install && yarn run build:docker +RUN npm i -g pnpm +RUN pnpm install +RUN pnpm run build FROM alpine:3.14 diff --git a/frontend/package.json b/frontend/package.json index 5636ed52..6d7fa3e7 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,10 +4,7 @@ "scripts": { "serve": "vite --debug", "serve:dist": "serve dist", - "build": "vite build", - "build:development": "vue-cli-service build --mode development", - "build:docker": "vue-cli-service build --mode docker", - "build:analyze": "vue-cli-service build --mode analyze" + "build": "vite build" }, "author": { "name": "Marvin Zhang",