fix: don't compile python to bytecode in Dockerfile
This commit is contained in:
parent
d5d01109a2
commit
4719b82c56
1 changed files with 2 additions and 3 deletions
|
|
@ -5,7 +5,7 @@ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv
|
|||
WORKDIR /app
|
||||
|
||||
# Enable bytecode compilation
|
||||
ENV UV_COMPILE_BYTECODE=1
|
||||
# ENV UV_COMPILE_BYTECODE=1
|
||||
|
||||
# Copy from the cache instead of linking since it's a mounted volume
|
||||
ENV UV_LINK_MODE=copy
|
||||
|
|
@ -27,8 +27,7 @@ FROM python:3.12-slim-bookworm
|
|||
WORKDIR /app
|
||||
|
||||
COPY --from=uv /root/.local /root/.local
|
||||
COPY --from=uv --chown=app:app /app/.venv /app/.venv
|
||||
COPY --from=uv --chown=app:app /app/src /app/src
|
||||
COPY --from=uv --chown=app:app /app /app
|
||||
|
||||
# Place executables in the environment at the front of the path
|
||||
ENV PATH="/app/.venv/bin:$PATH"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue