Update Dockerfile
Browse files- Dockerfile +3 -5
Dockerfile
CHANGED
@@ -6,7 +6,6 @@ RUN apt-get update && apt-get install -y \
|
|
6 |
build-essential \
|
7 |
ffmpeg \
|
8 |
curl \
|
9 |
-
software-properties-common \
|
10 |
git \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
@@ -15,12 +14,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
15 |
|
16 |
COPY src/ ./src/
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
|
22 |
EXPOSE 8501
|
23 |
-
|
24 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
25 |
|
26 |
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
6 |
build-essential \
|
7 |
ffmpeg \
|
8 |
curl \
|
|
|
9 |
git \
|
10 |
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
|
|
14 |
|
15 |
COPY src/ ./src/
|
16 |
|
17 |
+
# Create writable cache and config folders for Transformers and Streamlit
|
18 |
+
RUN mkdir -p /app/.cache/huggingface /app/.cache /app/.streamlit && \
|
19 |
+
chmod -R 777 /app/.cache /app/.streamlit
|
20 |
|
21 |
EXPOSE 8501
|
|
|
22 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
23 |
|
24 |
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|