dodd869 commited on
Commit
5d28cee
·
verified ·
1 Parent(s): b064b9f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -1,10 +1,12 @@
1
  FROM gradio/gradio:4.36.1-py310
2
 
3
  USER root
4
- RUN apt-get update && apt-get install -y wireguard-tools && apt-get clean
 
 
5
  USER user
6
 
7
  COPY requirements.txt .
8
- RUN pip install -r requirements.txt
9
  COPY app.py .
10
  CMD ["python", "app.py"]
 
1
  FROM gradio/gradio:4.36.1-py310
2
 
3
  USER root
4
+ RUN apt-get update && \
5
+ apt-get install -y --no-install-recommends wireguard-tools && \
6
+ apt-get clean && rm -rf /var/lib/apt/lists/*
7
  USER user
8
 
9
  COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
  COPY app.py .
12
  CMD ["python", "app.py"]