arpy8 commited on
Commit
a79bc89
·
1 Parent(s): edb5391

chore: Update Dockerfile to use uv for pip installation and set user to root

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -2,6 +2,7 @@ FROM python:3.11
2
 
3
  WORKDIR /code
4
 
 
5
  ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
6
  RUN /install.sh && rm /install.sh
7
 
@@ -11,4 +12,6 @@ RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
11
 
12
  COPY ./app /code/app
13
 
 
 
14
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /code
4
 
5
+ USER root
6
  ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
7
  RUN /install.sh && rm /install.sh
8
 
 
12
 
13
  COPY ./app /code/app
14
 
15
+ USER user
16
+
17
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]