Amitai Getzler
commited on
Commit
•
2dca332
1
Parent(s):
9ef8061
:art: Add
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
-
FROM python:3.
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
@@ -14,7 +14,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
14 |
EXPOSE 80
|
15 |
|
16 |
# Define environment variable
|
17 |
-
ENV
|
18 |
|
19 |
# Run app.py when the container launches
|
20 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.12-slim
|
3 |
|
4 |
# Set the working directory in the container
|
5 |
WORKDIR /app
|
|
|
14 |
EXPOSE 80
|
15 |
|
16 |
# Define environment variable
|
17 |
+
ENV HF_HOME .
|
18 |
|
19 |
# Run app.py when the container launches
|
20 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|