Spaces:
Running
Running
jinjingforever
commited on
Commit
•
528ce7c
1
Parent(s):
138e942
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -4,10 +4,6 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|
4 |
ENV TZ=Europe/Paris
|
5 |
|
6 |
RUN useradd -m -u 1000 user
|
7 |
-
USER user
|
8 |
-
|
9 |
-
ENV PATH="/home/user/.local/bin:$PATH"
|
10 |
-
|
11 |
WORKDIR /app
|
12 |
|
13 |
COPY --chown=user ./requirements.txt requirements.txt
|
@@ -15,4 +11,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
15 |
|
16 |
COPY --chown=user . /app
|
17 |
|
|
|
|
|
|
|
|
|
18 |
CMD ["model-explorer", "--extensions=model_explorer_onnx", "--host=0.0.0.0", "--port=7860", "--no_open_in_browser"]
|
|
|
4 |
ENV TZ=Europe/Paris
|
5 |
|
6 |
RUN useradd -m -u 1000 user
|
|
|
|
|
|
|
|
|
7 |
WORKDIR /app
|
8 |
|
9 |
COPY --chown=user ./requirements.txt requirements.txt
|
|
|
11 |
|
12 |
COPY --chown=user . /app
|
13 |
|
14 |
+
USER user
|
15 |
+
|
16 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
17 |
+
|
18 |
CMD ["model-explorer", "--extensions=model_explorer_onnx", "--host=0.0.0.0", "--port=7860", "--no_open_in_browser"]
|