增加docke部署
This commit is contained in:
20
codes/agent/game-docker/docker/wxserver/Dockerfile
Normal file
20
codes/agent/game-docker/docker/wxserver/Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 安装依赖
|
||||
COPY wxserver_daoqi/package.json ./
|
||||
RUN npm install --production
|
||||
|
||||
# 拷贝应用代码
|
||||
COPY wxserver_daoqi/ ./
|
||||
|
||||
# 设置时区
|
||||
RUN apk add --no-cache tzdata \
|
||||
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& echo "Asia/Shanghai" > /etc/timezone \
|
||||
&& apk del tzdata
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["node", "index.js"]
|
||||
Reference in New Issue
Block a user