Update Dockerfile
Browse files- Dockerfile +9 -1
Dockerfile
CHANGED
@@ -1,8 +1,16 @@
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
4 |
COPY requirements.txt .
|
5 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
6 |
COPY app.py .
|
7 |
|
8 |
-
|
|
|
|
1 |
FROM python:3.10-slim
|
2 |
|
3 |
WORKDIR /app
|
4 |
+
|
5 |
+
# Install git
|
6 |
+
RUN apt-get update && apt-get install -y git && apt-get clean
|
7 |
+
|
8 |
+
# Install Python dependencies
|
9 |
COPY requirements.txt .
|
10 |
RUN pip install --no-cache-dir -r requirements.txt
|
11 |
+
|
12 |
+
# Copy your app code
|
13 |
COPY app.py .
|
14 |
|
15 |
+
# Start your app
|
16 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|