LightRT commited on
Commit
a45b79e
·
verified ·
1 Parent(s): ab91163

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,4 +1,8 @@
1
- FROM python:3.11-slim
 
 
 
 
2
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
  build-essential \
@@ -7,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
7
  libglib2.0-0 \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /usr/local/bin/
11
 
12
  RUN useradd -m -u 1000 user
13
  USER user
 
1
+ FROM python:3.12-slim
2
+
3
+ ENV UV_PYTHON_DOWNLOADS=never \
4
+ UV_PYTHON=python3.12 \
5
+ UV_COMPILE_BYTECODE=1
6
 
7
  RUN apt-get update && apt-get install -y --no-install-recommends \
8
  build-essential \
 
11
  libglib2.0-0 \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ COPY --from=ghcr.io/astral-sh/uv:0.8 /uv /uvx /usr/local/bin/
15
 
16
  RUN useradd -m -u 1000 user
17
  USER user