mirror of
https://github.com/huge-dream/django-vue3-admin.git
synced 2026-10-05 09:20:52 +00:00
10 lines
244 B
Docker
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
|