基于nginx docker 构建镜像

This commit is contained in:
2021-06-06 10:37:12 +08:00
parent 74afe6fdd9
commit 547d96ea2c
4 changed files with 32 additions and 18 deletions

15
Node.Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:lts
WORKDIR /src
COPY . .
RUN yarn && \
yarn build:prod && \
yarn global add pm2 http-server
EXPOSE 80
# CMD ["http-server","/src/dist","-p","80"]
CMD ["bash","http.sh"]