Implemented the python draft
This commit is contained in:
1 parent
f962dbb31c
commit
8f96346a6b
29 files changed
+350
-86
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
# Basis-Image für Python
|
||||
FROM python:slim
|
||||
|
||||
# Arbeitsverzeichnis festlegen
|
||||
WORKDIR /app
|
||||
|
||||
# Abhängigkeiten kopieren und installieren
|
||||
COPY app/requirements.txt requirements.txt
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Anwendungscode kopieren
|
||||
COPY app/ .
|
||||
|
||||
# Port freigeben
|
||||
EXPOSE 5000
|
||||
|
||||
# Startbefehl
|
||||
CMD ["python", "app.py"]
|
||||
Reference in new issue
Block a user