Add Docker and docker-compose support

This commit is contained in:
Otto
2026-03-28 19:16:10 +00:00
parent d19ed62e6e
commit 6d250f542f
3 changed files with 27 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
node_modules/
dist/
.env
*.log

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
EXPOSE 3001
CMD ["node", "server.js"]

10
docker-compose.yml Normal file
View File

@@ -0,0 +1,10 @@
version: '3.8'
services:
meal-planner:
build: .
ports:
- "3001:3001"
volumes:
- ./data.json:/app/data.json
restart: unless-stopped