This commit is contained in:
2025-04-07 15:42:28 +08:00
commit c023e530e1
12 changed files with 563 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM node:18-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN mkdir -p /app/cache /app/logs && \
chown -R node:node /app
USER node
EXPOSE 3000
CMD ["node", "app.js"]