add docker

This commit is contained in:
Georgi Gardev
2025-05-14 12:49:17 +03:00
parent 6a64e2939e
commit 7d356a1a31
2 changed files with 18 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:20-slim
WORKDIR /app
COPY package*.json ./
RUN npm install --omit=dev
COPY . .
EXPOSE 3000
CMD ["npm", "run", "start"]

7
compose.yaml Normal file
View File

@@ -0,0 +1,7 @@
services:
sofia-traffic-info:
build: .
volumes:
- ./data:/app/data
ports:
- 3013:3000