brian-xetdata commited on
Commit
ba9cd3c
1 Parent(s): f89d416
Files changed (2) hide show
  1. Dockerfile +3 -5
  2. wrapper.sh +1 -1
Dockerfile CHANGED
@@ -1,14 +1,12 @@
1
  FROM python:3.9
2
 
3
- RUN useradd -m -u 1000 user
4
- USER user
5
  ENV Path="/home/user/.local/bin:$PATH"
6
 
7
  WORKDIR /app
8
 
9
- COPY --chown=user ./requirements.txt requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
- COPY . /app
13
 
14
- CMD "./wrapper.sh"
 
1
  FROM python:3.9
2
 
 
 
3
  ENV Path="/home/user/.local/bin:$PATH"
4
 
5
  WORKDIR /app
6
 
7
+ COPY ./requirements.txt requirements.txt
8
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
9
 
10
+ COPY --chmod=0755 . /app
11
 
12
+ CMD "/app/wrapper.sh"
wrapper.sh CHANGED
@@ -8,4 +8,4 @@ flask --app proxy run --host 0.0.0.0 --port 7860 &
8
 
9
  wait -n
10
 
11
- exit $?
 
8
 
9
  wait -n
10
 
11
+ exit $?