Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
@@ -1,8 +1,11 @@
|
|
1 |
-
#
|
2 |
-
#
|
3 |
|
4 |
FROM python:3.9
|
5 |
|
|
|
|
|
|
|
6 |
RUN useradd -m -u 1000 user
|
7 |
USER user
|
8 |
ENV PATH="/home/user/.local/bin:$PATH"
|
@@ -14,5 +17,5 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
14 |
|
15 |
COPY --chown=user . /app
|
16 |
|
17 |
-
#
|
18 |
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]
|
|
|
1 |
+
# Read the documentation: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
+
# You'll also find guides there to write your Dockerfile optimally
|
3 |
|
4 |
FROM python:3.9
|
5 |
|
6 |
+
# Update the package list and install libgl1-mesa-glx
|
7 |
+
RUN apt-get update && apt-get install -y --no-install-recommends libgl1-mesa-glx
|
8 |
+
|
9 |
RUN useradd -m -u 1000 user
|
10 |
USER user
|
11 |
ENV PATH="/home/user/.local/bin:$PATH"
|
|
|
17 |
|
18 |
COPY --chown=user . /app
|
19 |
|
20 |
+
# Flask startup command
|
21 |
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]
|