feat:图片服务

This commit is contained in:
2026-02-13 17:46:13 +08:00
commit e0c08e8055
6 changed files with 1462 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:18-alpine
WORKDIR /app
RUN npm config set registry https://registry.npmmirror.com/
COPY package*.json ./
RUN npm install --production
COPY app.js .
RUN mkdir -p /app/images
EXPOSE 3000
ENV IMAGE_BASE_DIR=/app/images
ENV PORT=3000
CMD ["node", "app.js"]