Spaces:
Running
Running
vidhanm
commited on
Commit
·
055abc9
1
Parent(s):
1792bb4
some chang
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -7,8 +7,8 @@ WORKDIR /app
|
|
7 |
# Set Hugging Face cache directory and Gradio temp/flagging dir
|
8 |
# These will be within /app or /tmp, which we can make writable.
|
9 |
ENV HF_HOME=/app/.cache/huggingface
|
10 |
-
ENV GRADIO_TEMP_DIR=/tmp/gradio_tmp
|
11 |
-
ENV GRADIO_FLAGGING_DIR=/tmp/gradio_flags
|
12 |
|
13 |
# Install git and build-essential (good practice for some pip installs)
|
14 |
RUN apt-get update && apt-get install -y \
|
@@ -17,8 +17,6 @@ RUN apt-get update && apt-get install -y \
|
|
17 |
&& rm -rf /var/lib/apt/lists/*
|
18 |
|
19 |
# Create the cache and temp directories and make them writable by any user.
|
20 |
-
# The user running the app inside the container (often root by default in simple Dockerfiles,
|
21 |
-
# or a non-root user in managed environments like Spaces) needs to write here.
|
22 |
RUN mkdir -p $HF_HOME $GRADIO_TEMP_DIR $GRADIO_FLAGGING_DIR && \
|
23 |
chmod -R 777 $HF_HOME $GRADIO_TEMP_DIR $GRADIO_FLAGGING_DIR
|
24 |
|
|
|
7 |
# Set Hugging Face cache directory and Gradio temp/flagging dir
|
8 |
# These will be within /app or /tmp, which we can make writable.
|
9 |
ENV HF_HOME=/app/.cache/huggingface
|
10 |
+
ENV GRADIO_TEMP_DIR=/tmp/gradio_tmp
|
11 |
+
ENV GRADIO_FLAGGING_DIR=/tmp/gradio_flags
|
12 |
|
13 |
# Install git and build-essential (good practice for some pip installs)
|
14 |
RUN apt-get update && apt-get install -y \
|
|
|
17 |
&& rm -rf /var/lib/apt/lists/*
|
18 |
|
19 |
# Create the cache and temp directories and make them writable by any user.
|
|
|
|
|
20 |
RUN mkdir -p $HF_HOME $GRADIO_TEMP_DIR $GRADIO_FLAGGING_DIR && \
|
21 |
chmod -R 777 $HF_HOME $GRADIO_TEMP_DIR $GRADIO_FLAGGING_DIR
|
22 |
|