feat: update Dockerfile and docker-compose for improved build process

This commit is contained in:
2025-05-01 11:24:27 +01:00
parent 9f4743eaea
commit 259ce3cf69
2 changed files with 4 additions and 15 deletions

View File

@@ -6,8 +6,9 @@ WORKDIR /app
# Systemabhängigkeiten (falls erforderlich)
RUN apt-get update && \
apt-get install -y --no-install-recommends gcc libpq-dev && \
rm -rf /var/lib/apt/lists/*
apt-get install -y --no-install-recommends gcc && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /app/database
# pip auf den neuesten Stand bringen und Requirements installieren
COPY requirements.txt ./

View File

@@ -12,19 +12,7 @@ services:
- "5000:5000"
volumes:
- .:/app:ro
depends_on:
- db
db:
image: postgres:15-alpine
container_name: systades_db
restart: always
env_file:
- .env
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "5432:5432"
- db_data:/app/database
volumes:
db_data: