Sithum Sathsara commited on
Commit ·
105596f
1
Parent(s): 7ae7b4c
Add application file
Browse files- Dockerfile +8 -5
Dockerfile
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
FROM python:3.9-slim
|
|
|
|
|
|
|
| 2 |
WORKDIR /app
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
+
RUN mkdir -p /home/user/app_cache
|
| 3 |
+
|
| 4 |
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
COPY --chown=user ./requirements.txt requirements.txt
|
| 7 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
| 8 |
+
|
| 9 |
+
COPY --chown=user . /app
|
| 10 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|