censor / Dockerfile
bufe's picture
Update Dockerfile
9894216 verified
raw
history blame contribute delete
399 Bytes
# 使用 Node.js 的 Alpine 版本
FROM node:lts-alpine
# 暴露端口
EXPOSE 3000
# 设置时区
ENV TZ=Asia/Shanghai
# 设置工作目录
WORKDIR /app
# 安装必要的工具和依赖
RUN apk add --no-cache git yarn tzdata
# 克隆代码到当前目录
RUN git clone https://github.com/Raimbaulty/censor.git .
# 安装项目依赖
RUN yarn install
# 启动应用
CMD ["npm", "run", "start"]