JewelryMall/server/Dockerfile
zpc 94356c9add
All checks were successful
continuous-integration/drone/push Build is passing
修改构建
2026-04-09 14:16:48 +08:00

17 lines
301 B
Docker

FROM 192.168.195.25:19900/library/node:20-alpine
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci --production=false --registry=https://registry.npmmirror.com
COPY tsconfig.json ./
COPY src/ ./src/
COPY migrations/ ./migrations/
RUN npx tsc
EXPOSE 3000
CMD ["node", "dist/app.js"]