diff --git a/Dockerfile b/Dockerfile index 887fb62..7e1f092 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/requirements.txt b/requirements.txt index e69de29..6bb27d3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1,2 @@ +flask +psycopg2-binary \ No newline at end of file diff --git a/static/HURENSOHN.ico b/static/HURENSOHN.ico new file mode 100644 index 0000000..3370f89 Binary files /dev/null and b/static/HURENSOHN.ico differ diff --git a/static/css/style.css b/static/css/style.css index e69de29..362738b 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -0,0 +1,3 @@ +body { + font-family: "Comic Sans MS" !important; +} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index b89b586..9927dc9 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,19 +1,20 @@ - + - - + + + + {% block title %} {% endblock %} -

Herzlich Willkommen auf der Website der BI23b!

-

Zurücklehnen und genießen...

+

{% block huso %} {% endblock %}

- + \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 7b7d76d..e9c0ff7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -2,4 +2,7 @@ {% block title %} HURENSOHN +{% endblock %} +{% block huso %} + HURENSOHN {% endblock %} \ No newline at end of file