+
\ No newline at end of file
diff --git a/Docker-Flask-QR.iml b/Docker-Flask-QR.iml
index 55d8595..5b1310a 100644
--- a/Docker-Flask-QR.iml
+++ b/Docker-Flask-QR.iml
@@ -6,4 +6,8 @@
+
+
+
+
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
index b746629..2de38e1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,17 @@
-FROM ubuntu:latest
-LABEL authors="tebarius"
+FROM python:slim
-ENTRYPOINT ["top", "-b"]
\ No newline at end of file
+LABEL authors="tebarius"
+LABEL version="1.0"
+LABEL description="Simple QR-Code-Generator-Server"
+
+WORKDIR /app
+RUN mkdir templates
+COPY ./templates /app/templates/
+COPY ./Flask-QR.py ./requirements.txt /app/
+
+#RUN pip install --upgrade pip
+RUN pip install --trusted-host pypi.python.org -r requirements.txt
+
+EXPOSE 80
+
+CMD ["python", "Flask-QR.py"]
\ No newline at end of file
diff --git a/Dockerfile-RasPi b/Dockerfile-RasPi
index b8c7a0d..50ecc8a 100644
--- a/Dockerfile-RasPi
+++ b/Dockerfile-RasPi
@@ -1,4 +1,4 @@
-FROM python:3.9.18-slim
+FROM python:slim
LABEL authors="tebarius"
LABEL version="1.0"
@@ -6,9 +6,13 @@ LABEL description="Simple QR-Code-Generator-Server"
WORKDIR /app
-COPY ./templates ./Flask-QR.py ./requirements.txt /app/
+RUN mkdir templates
+COPY ./templates /app/templates/
+COPY ./Flask-QR.py ./requirements.txt /app/
-RUN pip install --upgrade pip
+RUN apt-get update && apt-get install -y zlib1g-dev libjpeg-dev libpng-dev gcc
+#RUN python -m pip install --upgrade pip
+#RUN python -m pip install --upgrade pillow
RUN pip install --trusted-host pypi.python.org -r requirements.txt
EXPOSE 80
diff --git a/Flask-QR.py b/Flask-QR.py
index e09f144..76229ef 100644
--- a/Flask-QR.py
+++ b/Flask-QR.py
@@ -1,3 +1,6 @@
+#!/usr/bin/env python3
+# notwendige pakete via pip:
+# pip install Flask Flask-QRcode
from flask import Flask, render_template, request
from flask_qrcode import QRcode
diff --git a/requirements.txt b/requirements.txt
index e69de29..6056ed4 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -0,0 +1,2 @@
+Flask
+Flask-QRcode
\ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
index a4963b6..6211232 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,9 +1,23 @@
-
+