From c7c6583523f4029089ba9cfe28b78bb5e97fe582 Mon Sep 17 00:00:00 2001 From: Rick Date: Tue, 11 Jan 2022 19:07:48 +0800 Subject: [PATCH] fix: docker build image error (#1212) (#1216) --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58128ce..7fd71b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ -FROM node:lts-alpine as build +FROM node:16.13.1-alpine as build ENV VUE_APP_NETEASE_API_URL=/api WORKDIR /app COPY . . +RUN apk add --no-cache python3 make g++ RUN yarn && yarn build -FROM nginx:alpine as app +FROM nginx:1.20.2-alpine as app COPY --from=build /app/dist /usr/share/nginx/html COPY --from=build /app/netease_api /usr/src/netease_api WORKDIR /usr/src/netease_api