alonsosilva commited on
Commit
bc5db1b
·
1 Parent(s): 834fcc6

Copy the binary from the official distroless Docker image

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
  FROM python:3.11
2
 
 
 
3
  # Set up a new user named "user" with user ID 1000
4
  RUN useradd -m -u 1000 user
5
 
@@ -14,7 +16,7 @@ COPY --chown=user requirements.txt requirements.txt
14
 
15
  COPY --chown=user app.py app.py
16
 
17
- curl -LsSf https://astral.sh/uv/install.sh | sh
18
 
19
  # Upgrade pip
20
  # RUN pip install --no-cache-dir --upgrade pip
 
1
  FROM python:3.11
2
 
3
+
4
+
5
  # Set up a new user named "user" with user ID 1000
6
  RUN useradd -m -u 1000 user
7
 
 
16
 
17
  COPY --chown=user app.py app.py
18
 
19
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
20
 
21
  # Upgrade pip
22
  # RUN pip install --no-cache-dir --upgrade pip