20 lines
384 B
Docker
20 lines
384 B
Docker
# Python Image
|
|
FROM python:3.10-slim
|
|
|
|
# Arbeitsverzeichnis setzen
|
|
WORKDIR /app
|
|
|
|
# Abhängigkeiten installieren
|
|
COPY requirements.txt requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
RUN apt update
|
|
RUN apt install curl -y
|
|
|
|
# App-Dateien kopieren
|
|
COPY . .
|
|
|
|
ENV FLASK_APP=app
|
|
ENV FLASK_ENV=production
|
|
|
|
EXPOSE 5000
|
|
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]
|