stroke-convert / Dockerfile
mokee's picture
Update Dockerfile
4ca5472 verified
Raw History Blame Contribute Delete
307 Bytes
FROM node:18
# 安装 Inkscape 和虚拟显示支持
RUN apt-get update && apt-get install -y \
inkscape \
xvfb \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# 只要最基础的依赖即可
RUN npm install express cors uuid
COPY . .
EXPOSE 7860
# 启动服务器
CMD ["node", "server.js"]