add Dockerfile and docker-compose.yml; remove README and executable

This commit is contained in:
2025-06-17 21:37:19 +02:00
parent f392eb3e3d
commit fe02505cc6
4 changed files with 34 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# Basis-Image
FROM node:18
# Arbeitsverzeichnis
WORKDIR /app
# Dependencies kopieren und installieren
COPY package*.json ./
RUN npm install
# App-Code kopieren
COPY . .
# Port definieren
EXPOSE 8956
# Startkommando
CMD ["node", "server.js"]

View File

Binary file not shown.

16
docker-compose.yml Normal file
View File

@@ -0,0 +1,16 @@
version: '3'
services:
express-app:
build: .
container_name: cookbook
restart: unless-stopped
ports:
- "8956:8956"
environment:
- NODE_ENV=production
networks:
- proxynet
networks:
proxynet:
external: true