Add Dockerfile

This commit is contained in:
romtuck 2026-05-31 09:49:16 +03:00
parent 8b7c62859f
commit 5998c94671

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3000
RUN apk add --no-cache curl
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
RUN node --check server.js
EXPOSE 3000
CMD ["node", "/app/server.js"]