wenmeng zhou commited on
Commit
110a28a
β€’
1 Parent(s): 71d722e

remove user and run as root

Browse files
Files changed (1) hide show
  1. 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
- PATH=/home/user/.local/bin:${PATH}
10
- WORKDIR ${HOME}/app
11
 
12
- COPY --chown=1000 ./requirements.txt /tmp/requirements.txt
13
  RUN pip install -r /tmp/requirements.txt
14
 
15
- COPY --chown=1000 . ${HOME}/app
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 \