基于nginx docker 构建镜像
This commit is contained in:
15
Node.Dockerfile
Normal file
15
Node.Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user