hyb
2025-05-20 e8003b5c66494c398fa8b716e0872771e2ea4af8
1
2
3
4
5
6
7
8
9
10
11
12
FROM node:16-alpine as DIST
WORKDIR /web
COPY frontend .
RUN npm install --registry=https://registry.npmmirror.com -g yarn --force \
    && yarn install --registry=https://registry.npmmirror.com \
    && yarn build
 
FROM nginx:1.21-alpine
RUN rm /etc/nginx/conf.d/default.conf
COPY ./deployment/web/nginx.conf /etc/nginx/conf.d/lunar_link.conf
COPY ./backend/static_root  /www/LunarLink/static
COPY --from=DIST /web/dist /usr/share/nginx/html