Update Dockerfile
Browse files- Dockerfile +2 -5
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
-
FROM python:3.
|
| 5 |
|
| 6 |
RUN useradd -m -u 1000 ollama
|
| 7 |
USER ollama
|
|
@@ -16,7 +16,4 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
| 16 |
COPY --chown=ollama . /app
|
| 17 |
|
| 18 |
EXPOSE 7860
|
| 19 |
-
CMD ["python3", "-m flask"
|
| 20 |
-
|
| 21 |
-
#CMD ["python3", "-m flask"," --app hello run --host=0.0.0.0 --port=7860"]
|
| 22 |
-
#CMD poetry run uvicorn --host=0.0.0.0 app.main:app
|
|
|
|
| 1 |
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
| 2 |
# you will also find guides on how best to write your Dockerfile
|
| 3 |
|
| 4 |
+
FROM python:3.12
|
| 5 |
|
| 6 |
RUN useradd -m -u 1000 ollama
|
| 7 |
USER ollama
|
|
|
|
| 16 |
COPY --chown=ollama . /app
|
| 17 |
|
| 18 |
EXPOSE 7860
|
| 19 |
+
CMD ["python3", "-m flask"]
|
|
|
|
|
|
|
|
|