Add Docker production setup

This commit is contained in:
Cay Joksch 2026-02-28 14:58:54 +00:00
parent 21cdcfb376
commit 1894cf6894
3 changed files with 26 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
node_modules
.git
deploy.log

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev
COPY . .
EXPOSE 3005
CMD ["node", "app.js"]

11
docker-compose.yml Normal file
View File

@ -0,0 +1,11 @@
version: "3.9"
services:
plusfit24:
build: .
container_name: plusfit24
restart: always
ports:
- "3005:3005"
env_file:
- .env