Files
django-vue3-admin/docker_env/web/Dockerfile
T
2026-03-19 20:03:10 +08:00

10 lines
244 B
Docker

FROM node:20-alpine
WORKDIR /web/
COPY web/. .
RUN yarn install --registry=https://registry.npmmirror.com
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