Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
|
@@ -5,7 +5,17 @@ WORKDIR /app
|
|
| 5 |
RUN mkdir -p /app/.cache_app && \
|
| 6 |
chown -R 1000:1000 /app/.cache_app && \
|
| 7 |
chmod -R u+rwx,g+rwx /app/.cache_app
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
RUN apt-get update && apt-get install -y \
|
| 10 |
build-essential \
|
| 11 |
cmake \
|
|
|
|
| 5 |
RUN mkdir -p /app/.cache_app && \
|
| 6 |
chown -R 1000:1000 /app/.cache_app && \
|
| 7 |
chmod -R u+rwx,g+rwx /app/.cache_app
|
| 8 |
+
|
| 9 |
+
ENV STREAMLIT_HOME=/app/.streamlit_config
|
| 10 |
+
# Create and set permissions for Streamlit's configuration directory
|
| 11 |
+
RUN mkdir -p ${STREAMLIT_HOME} && \
|
| 12 |
+
chown -R 1000:1000 ${STREAMLIT_HOME} && \
|
| 13 |
+
chmod -R u+rwx,g+rwx ${STREAMLIT_HOME}
|
| 14 |
+
# --- ^ ^ ^ END OF STREAMLIT PERMISSION FIX ^ ^ ^ ---
|
| 15 |
+
|
| 16 |
+
# Set TOKENIZERS_PARALLELISM to false to avoid warnings (optional but good practice)
|
| 17 |
+
ENV TOKENIZERS_PARALLELISM=false
|
| 18 |
+
|
| 19 |
RUN apt-get update && apt-get install -y \
|
| 20 |
build-essential \
|
| 21 |
cmake \
|