bor commited on
Commit
75e7ffd
·
verified ·
1 Parent(s): b6f407d

chore: update uv & move to pyproject.toml

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  FROM python:3.12
2
- COPY --from=ghcr.io/astral-sh/uv:0.4.20 /uv /bin/uv
3
 
4
  RUN useradd -m -u 1000 user
5
  ENV PATH="/home/user/.local/bin:$PATH"
@@ -7,8 +7,8 @@ ENV UV_SYSTEM_PYTHON=1
7
 
8
  WORKDIR /app
9
 
10
- COPY --chown=user ./requirements.txt requirements.txt
11
- RUN uv pip install -r requirements.txt
12
 
13
  COPY --chown=user . /app
14
  USER user
 
1
  FROM python:3.12
2
+ COPY --from=ghcr.io/astral-sh/uv:0.6.14 /uv /bin/uv
3
 
4
  RUN useradd -m -u 1000 user
5
  ENV PATH="/home/user/.local/bin:$PATH"
 
7
 
8
  WORKDIR /app
9
 
10
+ COPY --chown=user ./pyproject.toml pyproject.toml
11
+ RUN uv sync
12
 
13
  COPY --chown=user . /app
14
  USER user