add Dockerfile and docker-compose.yml; remove README and executable
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
Binary file not shown.
16
docker-compose.yml
Normal file
16
docker-compose.yml
Normal 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
|
Reference in New Issue
Block a user