Spaces:
Runtime error
Runtime error
FROM node | |
# 设置大陆时区 | |
ENV TZ Asia/Shanghai | |
# 设置中文语言 | |
ENV LANG C.UTF-8 | |
# 切换工作目录 | |
WORKDIR /app | |
# 复制文件到工作目录 | |
COPY . . | |
# 安装所需工具 | |
RUN apt-get update | |
RUN apt-get install -y chromium ffmpeg curl | |
RUN apt-get install -y fonts-wqy-microhei | |
RUN apt-get clean | |
# 安装依赖 | |
RUN npm install | |
# 启动! | |
CMD node app | |
# 赋予权限/归递 | |
RUN chmod -R 777 /tmp | |
RUN chmod -R 777 /app |