Initial commit: IT Nexus Web-App
This commit is contained in:
26
backend/Dockerfile
Normal file
26
backend/Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
# Backend Dockerfile für FIDO-Key Management System
|
||||
FROM node:18-alpine
|
||||
|
||||
# Arbeitsverzeichnis erstellen
|
||||
WORKDIR /app
|
||||
|
||||
# Python und Build-Tools für better-sqlite3 installieren
|
||||
RUN apk add --no-cache python3 make g++
|
||||
|
||||
# Package files kopieren
|
||||
COPY package*.json ./
|
||||
|
||||
# Dependencies installieren
|
||||
RUN npm install --only=production
|
||||
|
||||
# Source Code kopieren
|
||||
COPY . .
|
||||
|
||||
# Port freigeben
|
||||
EXPOSE 5000
|
||||
|
||||
# Umgebungsvariablen
|
||||
ENV NODE_ENV=production
|
||||
|
||||
# Server starten
|
||||
CMD ["node", "src/server.js"]
|
||||
Reference in New Issue
Block a user