Spaces:
Running
Running
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -9,17 +9,17 @@ RUN useradd -m -u 1000 user
|
|
9 |
USER user
|
10 |
|
11 |
# Fill in the username in the PATH environment variable (e.g., user)
|
12 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
13 |
|
14 |
# Set working directory
|
15 |
WORKDIR /app
|
16 |
|
17 |
# Use the same username for file ownership when copying requirements (e.g., user)
|
18 |
-
COPY --chown=user ./requirements.txt requirements.txt
|
19 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
20 |
|
21 |
# Use the same username for file ownership when copying the app files (e.g., user)
|
22 |
-
COPY --chown=user . /app
|
23 |
|
24 |
# Start the Streamlit app on port 7860, the default port expected by Spaces
|
25 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
9 |
USER user
|
10 |
|
11 |
# Fill in the username in the PATH environment variable (e.g., user)
|
12 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
13 |
|
14 |
# Set working directory
|
15 |
WORKDIR /app
|
16 |
|
17 |
# Use the same username for file ownership when copying requirements (e.g., user)
|
18 |
+
COPY --chown=user ./requirements.txt requirements.txt
|
19 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
20 |
|
21 |
# Use the same username for file ownership when copying the app files (e.g., user)
|
22 |
+
COPY --chown=user . /app
|
23 |
|
24 |
# Start the Streamlit app on port 7860, the default port expected by Spaces
|
25 |
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|