sebastiansarasti commited on
Commit
a4815ef
·
1 Parent(s): bdfa8a5

FIX: solving the uv installer

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -7,9 +7,18 @@ COPY src/ src/
7
  COPY data/ /data
8
 
9
  RUN pip install uv
10
- RUN uv pip install -r requirements.txt
11
  RUN pip install -e .
12
 
 
 
 
 
 
 
 
 
 
13
  EXPOSE 8501
14
 
15
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
7
  COPY data/ /data
8
 
9
  RUN pip install uv
10
+ RUN uv pip install --system -r requirements.txt
11
  RUN pip install -e .
12
 
13
+ RUN useradd -m appuser && \
14
+ mkdir -p /app/cache /app/.streamlit && \
15
+ chown -R appuser:appuser /app
16
+
17
+ ENV HF_HOME=/app/cache
18
+ ENV STREAMLIT_CONFIG_DIR=/app/.streamlit
19
+
20
+ USER appuser
21
+
22
  EXPOSE 8501
23
 
24
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health