automated_api/Dockerfile
lixin 07a8247b89
Some checks failed
continuous-integration/drone/push Build is failing
refactor(dockerfile): Update Node.js version and simplify Docker build process
- Changed base image from node:22-alpine to node:18-alpine
- Simplified Dockerfile by removing redundant comments
- Streamlined dependency installation and build steps
- Maintained pnpm as package manager
2025-01-25 10:48:37 +08:00

13 lines
162 B
Docker

FROM node:18-alpine
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
COPY . .
RUN npm install -g pnpm && \
pnpm install
EXPOSE 8001
CMD ["pnpm", "start"]