Spaces:
Runtime error
Runtime error
wenmeng zhou
commited on
Commit
β’
110a28a
1
Parent(s):
71d722e
remove user and run as root
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -3,16 +3,16 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|
3 |
#RUN apt-get update && \
|
4 |
# apt-get upgrade -y && \
|
5 |
# apt-get install -y --no-install-recommends \
|
6 |
-
RUN useradd -m -u 1000 user
|
7 |
-
USER user
|
8 |
-
ENV HOME=/home/user \
|
9 |
-
|
10 |
-
WORKDIR ${HOME}/app
|
11 |
|
12 |
-
COPY
|
13 |
RUN pip install -r /tmp/requirements.txt
|
14 |
|
15 |
-
COPY
|
16 |
ENV PYTHONPATH=${HOME}/app \
|
17 |
PYTHONUNBUFFERED=1 \
|
18 |
GRADIO_ALLOW_FLAGGING=never \
|
|
|
3 |
#RUN apt-get update && \
|
4 |
# apt-get upgrade -y && \
|
5 |
# apt-get install -y --no-install-recommends \
|
6 |
+
# RUN useradd -m -u 1000 user
|
7 |
+
# USER user
|
8 |
+
# ENV HOME=/home/user \
|
9 |
+
# PATH=/home/user/.local/bin:${PATH}
|
10 |
+
# WORKDIR ${HOME}/app
|
11 |
|
12 |
+
COPY ./requirements.txt /tmp/requirements.txt
|
13 |
RUN pip install -r /tmp/requirements.txt
|
14 |
|
15 |
+
COPY . ${HOME}/app
|
16 |
ENV PYTHONPATH=${HOME}/app \
|
17 |
PYTHONUNBUFFERED=1 \
|
18 |
GRADIO_ALLOW_FLAGGING=never \
|