Skip to content

Commit 922d1ba

Browse files
authored
Create Dockerfile
1 parent c0b18f9 commit 922d1ba

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Basis-Image mit Python 3.11
2+
FROM python:3.11-slim
3+
4+
# Arbeitsverzeichnis
5+
WORKDIR /app
6+
7+
# Abhängigkeiten kopieren und installieren
8+
COPY requirements.txt .
9+
RUN pip install --no-cache-dir -r requirements.txt
10+
11+
# Restliche App kopieren
12+
COPY aiproxy.py .
13+
# Expose Port
14+
EXPOSE 8000
15+
16+
# Start-Befehl
17+
CMD ["uvicorn", "aiproxy:app", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)