youbiaokachi commited on
Commit
01b03a3
·
verified ·
1 Parent(s): c1bd100

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,14 +1,16 @@
1
  # ---- Base Stage ----
2
- FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim
3
  WORKDIR /app
4
 
5
-
 
6
  COPY pyproject.toml .
7
  RUN uv venv && \
8
  . .venv/bin/activate && \
9
  uv pip install . --no-cache-dir
10
 
11
-
 
12
  ENV WARP_LOG_LEVEL=info
13
  ENV WARP_ACCESS_LOG=true
14
  ENV OPENAI_LOG_LEVEL=info
 
1
  # ---- Base Stage ----
2
+ FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim AS base
3
  WORKDIR /app
4
 
5
+ # ---- Builder Stage ----
6
+ FROM base AS builder
7
  COPY pyproject.toml .
8
  RUN uv venv && \
9
  . .venv/bin/activate && \
10
  uv pip install . --no-cache-dir
11
 
12
+ # ---- Final Stage ----
13
+ FROM base AS final
14
  ENV WARP_LOG_LEVEL=info
15
  ENV WARP_ACCESS_LOG=true
16
  ENV OPENAI_LOG_LEVEL=info