1 Star 0 Fork 1

悦!城/lottery_1

forked from 黑风风/lottery 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 946 Bytes
一键复制 编辑 原始数据 按行查看 历史
JessyTsui 提交于 2023-03-20 06:04 . update docker config and doc
# Use the official Node.js 16 image as base image
FROM node:16.14.0-buster
# Upgrade npm to the latest version
RUN npm install -g npm@9.6.2
# Set the author of the Dockerfile
LABEL maintainer="YIN"
# Add the application source code to the container
ADD lottery.tar.gz /
# Set the working directory to the root directory of the application
WORKDIR /lottery
# Set the ownership of the application directory to root
RUN chown -R root /lottery \
# Remove the line that opens the default browser when starting the server
&& sed -i '/openBrowser/ d' ./server/server.js \
# Install dependencies for the server and product directories
&& cd server && npm install \
&& cd ../product && npm install \
# Build the application
&& npm run build
# Expose port 8080 to the outside world
EXPOSE 8080
# Set the working directory to the product directory
WORKDIR /lottery/product
# Start the server
CMD ["npm", "run", "serve"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/iwontletyougo/lottery_1.git
git@gitee.com:iwontletyougo/lottery_1.git
iwontletyougo
lottery_1
lottery_1
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385