jsulz HF staff commited on
Commit
b1153c9
·
1 Parent(s): 35c351a

docker updates

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -4
Dockerfile CHANGED
@@ -1,8 +1,14 @@
1
- FROM python:3.10-slim
2
 
3
- WORKDIR /usr/src/app
4
- COPY . .
5
- RUN pip install --no-cache-dir requirements.txt
 
 
 
 
 
 
6
  RUN pip install --no-cache-dir --no-deps gradio_huggingfacehub_search
7
  EXPOSE 7860
8
  ENV GRADIO_SERVER_NAME="0.0.0.0"
 
1
+ FROM python:3.11-slim
2
 
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y git
6
+
7
+ RUN useradd -m -u 1000 user
8
+ # Switch to root to change permissions
9
+ USER root
10
+ COPY --chown=user ./requirements.txt requirements.txt
11
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
12
  RUN pip install --no-cache-dir --no-deps gradio_huggingfacehub_search
13
  EXPOSE 7860
14
  ENV GRADIO_SERVER_NAME="0.0.0.0"