egg-api / Dockerfile
luoyutianyang's picture
Update Dockerfile
c8b0821 verified
raw
history blame
467 Bytes
# 使用 superiortech/opencv4nodejs 镜像作为基础镜像
FROM superiortech/opencv4nodejs
RUN apt install nodejs
RUN apt install npm -y
# 设置工作目录
WORKDIR /app
# 安装依赖
RUN npm update
RUN npm install axios
RUN npm install express
RUN npm install fluent-ffmpeg
RUN npm install fs
RUN npm install jimp
RUN npm install sharp
# 复制应用程序代码到工作目录
COPY . .
# 暴露端口
EXPOSE 7860
# 启动应用
CMD [ "node", "egg-api.js" ]