Commit
·
c1b3777
1
Parent(s):
47e7d4f
add: uv integration
Browse files- Dockerfile +5 -2
Dockerfile
CHANGED
|
@@ -10,13 +10,16 @@ RUN apt-get update && apt-get install -y \
|
|
| 10 |
wget \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
|
|
|
|
|
|
| 13 |
COPY requirements.txt ./
|
| 14 |
COPY src/ ./src/
|
| 15 |
|
| 16 |
-
RUN
|
|
|
|
| 17 |
|
| 18 |
EXPOSE 8501
|
| 19 |
|
| 20 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 21 |
|
| 22 |
-
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 10 |
wget \
|
| 11 |
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
+
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
|
| 14 |
+
|
| 15 |
COPY requirements.txt ./
|
| 16 |
COPY src/ ./src/
|
| 17 |
|
| 18 |
+
RUN uv venv
|
| 19 |
+
RUN uv pip install -r requirements.txt
|
| 20 |
|
| 21 |
EXPOSE 8501
|
| 22 |
|
| 23 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
|
| 24 |
|
| 25 |
+
ENTRYPOINT ["uv", "run", "streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|