Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +1 -3
Dockerfile
CHANGED
|
@@ -26,7 +26,7 @@
|
|
| 26 |
# you will also find guides on how best to write your Dockerfile
|
| 27 |
FROM python:3.11-slim
|
| 28 |
|
| 29 |
-
WORKDIR /
|
| 30 |
|
| 31 |
RUN apt-get update && apt-get install --no-cache --no-install-recommends -y \
|
| 32 |
build-essential \
|
|
@@ -39,7 +39,6 @@ COPY requirements.txt ./
|
|
| 39 |
|
| 40 |
# Install uv for faster dependency resolution, then install packages system-wide
|
| 41 |
RUN pip3 install --no-cache-dir uv --root-user-action ignore && \
|
| 42 |
-
#pip install --no-cache-dir uv && \
|
| 43 |
uv pip3 install --system --no-cache-dir -r requirements.txt
|
| 44 |
|
| 45 |
## Download Bootstrap
|
|
@@ -64,6 +63,5 @@ COPY src/ ./src/
|
|
| 64 |
EXPOSE 1300
|
| 65 |
|
| 66 |
CMD ["uvicorn", "run", "src/app.py", "--server.port=1300", "--server.address=0.0.0.0"]
|
| 67 |
-
|
| 68 |
ENTRYPOINT ["run", "static/index.HTML"]
|
| 69 |
#ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=1300", "--server.address=0.0.0.0"]
|
|
|
|
| 26 |
# you will also find guides on how best to write your Dockerfile
|
| 27 |
FROM python:3.11-slim
|
| 28 |
|
| 29 |
+
WORKDIR /src
|
| 30 |
|
| 31 |
RUN apt-get update && apt-get install --no-cache --no-install-recommends -y \
|
| 32 |
build-essential \
|
|
|
|
| 39 |
|
| 40 |
# Install uv for faster dependency resolution, then install packages system-wide
|
| 41 |
RUN pip3 install --no-cache-dir uv --root-user-action ignore && \
|
|
|
|
| 42 |
uv pip3 install --system --no-cache-dir -r requirements.txt
|
| 43 |
|
| 44 |
## Download Bootstrap
|
|
|
|
| 63 |
EXPOSE 1300
|
| 64 |
|
| 65 |
CMD ["uvicorn", "run", "src/app.py", "--server.port=1300", "--server.address=0.0.0.0"]
|
|
|
|
| 66 |
ENTRYPOINT ["run", "static/index.HTML"]
|
| 67 |
#ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=1300", "--server.address=0.0.0.0"]
|