Add Dockerfile
All checks were successful
ci / Image build (push) Successful in 42s
ci / Deployment (push) Successful in 10s

This commit is contained in:
Joris Bertomeu
2024-10-01 11:52:37 +02:00
parent 3c285c8263
commit b8ae4ca0f0
2 changed files with 64 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:22-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install --production
RUN npm install -g pm2
COPY . .
EXPOSE 3000
CMD ["pm2-runtime", "start", "/app/index.js"]