This commit is contained in:
2025-09-11 09:07:12 +02:00
parent b6abfcfc67
commit f59275deea
6 changed files with 28 additions and 19 deletions

View File

@@ -1,21 +1,21 @@
FROM python:3.11-slim
# Arbeitsverzeichnis
WORKDIR /app
# Git installieren
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
# Systemabhängigkeiten (optional, falls gebraucht)
RUN apt-get update && apt-get install -y \
build-essential \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Repository klonen
ARG REPO_URL
RUN git clone ${REPO_URL} /app
# Requirements installieren
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Abhängigkeiten installieren (falls requirements.txt existiert)
RUN pip install --no-cache-dir -r requirements.txt || true
# Code kopieren
COPY . .
# Entrypoint-Skript für git pull beim Start
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV FLASK_APP=app.py
ENV FLASK_ENV=development
EXPOSE 5000
ENTRYPOINT ["/entrypoint.sh"]
CMD ["flask", "run", "--host=0.0.0.0"]

View File

@@ -0,0 +1,2 @@
flask
psycopg2-binary

BIN
static/HURENSOHN.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

View File

@@ -0,0 +1,3 @@
body {
font-family: "Comic Sans MS" !important;
}

View File

@@ -1,19 +1,20 @@
<html lang="de">
<html lang="de"'>
<head>
<link rel="stylesheet" href="/css/style.css">
<meta charstet="utf-8">
<meta charstet="utf-8"><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB" crossorigin="anonymous">
<link rel="stylesheet" href="/static/css/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="/static/HURENSOHN.ico">
<title> {% block title %} {% endblock %} </title>
</head>
<body>
<h1> Herzlich Willkommen auf der Website der BI23b! </h1>
<p> Zurücklehnen und genießen... </p>
<h1>{% block huso %} {% endblock %}</h1>
</body>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
</html>

View File

@@ -2,4 +2,7 @@
{% block title %}
HURENSOHN
{% endblock %}
{% block huso %}
HURENSOHN
{% endblock %}