Files
django-vue3-admin/docker_env/web/Dockerfile
2023-02-23 02:25:31 +08:00

10 lines
205 B
Docker

FROM node:16.19-alpine
WORKDIR /web/
COPY web/. .
RUN yarn install
RUN yarn build
FROM nginx:alpine
COPY ./docker_env/nginx/my.conf /etc/nginx/conf.d/my.conf
COPY --from=0 /web/dist /usr/share/nginx/html