mirror of
https://github.com/TangSengDaoDao/TangSengDaoDaoManager
synced 2024-12-14 20:39:59 +00:00
17 lines
434 B
Docker
17 lines
434 B
Docker
FROM node:16.20.1 as builder
|
|
WORKDIR /app
|
|
RUN npm config set registry https://registry.npm.taobao.org
|
|
RUN npm install pnpm -g
|
|
|
|
COPY . .
|
|
|
|
RUN pnpm install && pnpm build
|
|
|
|
|
|
FROM nginx:latest
|
|
COPY --from=builder /app/docker-entrypoint.sh /docker-entrypoint2.sh
|
|
COPY --from=builder /app/nginx.conf.template /
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
ENTRYPOINT ["sh", "/docker-entrypoint2.sh"]
|
|
CMD ["nginx","-g","daemon off;"]
|