terryyz commited on
Commit
d3b3306
1 Parent(s): e81b7d4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y git g++ python3-tk zip unzip procps r-b
8
  RUN pip install --upgrade pip
9
 
10
  RUN pip install gradio==4.31.0 gradio[oauth]
 
11
  # Add a new user "bigcodebenchuser"
12
  RUN adduser --disabled-password --gecos "" bigcodebenchuser
13
 
@@ -30,8 +31,8 @@ RUN chown -R bigcodebenchuser:bigcodebenchuser /app
30
 
31
  RUN chmod -R 777 /app
32
 
33
- USER bigcodebenchuser
34
 
35
- ENTRYPOINT ["python", "app.py"]
36
 
37
- CMD ["sh", "-c", "pids=$(ps -u $(id -u) -o pid,comm | grep 'bigcodebench' | awk '{print $1}'); if [ -n \"$pids\" ]; then echo $pids | xargs -r kill; fi; rm -rf /tmp/*"]
 
8
  RUN pip install --upgrade pip
9
 
10
  RUN pip install gradio==4.31.0 gradio[oauth]
11
+
12
  # Add a new user "bigcodebenchuser"
13
  RUN adduser --disabled-password --gecos "" bigcodebenchuser
14
 
 
31
 
32
  RUN chmod -R 777 /app
33
 
34
+ COPY . $HOME/app
35
 
36
+ USER bigcodebenchuser
37
 
38
+ CMD ["python", "app.py"]