GT / Dockerfile
hanxuan's picture
XxxX
330c0d5
# 使用Node.js基础镜像
FROM node:18
# 设置大陆时区
ENV TZ Asia/Shanghai
# 设置工作目录
WORKDIR /GT
# 将本地的所有文件复制到工作目录
COPY . .
# 赋予权限/归递
RUN chmod -R 777 /tmp
RUN chmod -R 777 /GT
# 安装数据库
RUN apt update
RUN apt install -y redis
# 安装依赖
RUN npm install
# 暴露端口
EXPOSE 7860
# 启动!
CMD ["node", "app.js"]