mirror of
https://github.com/TangSengDaoDao/TangSengDaoDaoWeb
synced 2025-05-19 14:42:31 +00:00
14 lines
537 B
Docker
14 lines
537 B
Docker
FROM node:20.9.0 as builder
|
|
WORKDIR /app
|
|
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
# RUN yarn config set registry https://registry.npm.taobao.org -g
|
|
# RUN npm config set registry https://registry.npm.taobao.org
|
|
COPY . .
|
|
RUN yarn install && yarn 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/apps/web/build /usr/share/nginx/html
|
|
ENTRYPOINT ["sh", "/docker-entrypoint2.sh"]
|
|
CMD ["nginx","-g","daemon off;"] |