Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c2910b7
fix: avoid duplicate venv copy in server Dockerfile template
ritvik412 Aug 2, 2026
a930ded
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 21, 2026
6524358
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 21, 2026
5c1004b
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 21, 2026
1e5d951
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 22, 2026
465583f
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 22, 2026
e81a2a5
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 23, 2026
909cc6b
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 23, 2026
b223b51
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 23, 2026
084df12
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 23, 2026
0c40ff3
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 23, 2026
ef1968e
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 24, 2026
8cda2ce
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 24, 2026
797f9c3
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 25, 2026
ca328a7
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 28, 2026
e99e481
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 28, 2026
df3e6a6
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 29, 2026
4b196f0
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 29, 2026
97f0eae
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 29, 2026
183c6a2
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 30, 2026
b5a57d1
Merge branch 'main' into fix/1021-dockerfile-venv-double-copy
burtenshaw Sep 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,28 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --no-editable; \
fi

# Move the venv out of /app/env so it isn't nested inside the directory we
# copy wholesale below. Copying /app/env/.venv separately AND /app/env would
# otherwise ship the venv twice (once at /app/.venv, once at
# /app/env/.venv), roughly doubling the image size.
RUN mv /app/env/.venv /app/.venv

# Final runtime stage
FROM ${BASE_IMAGE}

WORKDIR /app

# Copy the virtual environment from builder
COPY --from=builder /app/env/.venv /app/.venv
COPY --from=builder /app/.venv /app/.venv

# Copy the environment code
# Copy the environment code (no longer contains .venv, see builder stage)
COPY --from=builder /app/env /app/env

# Recreate a .venv symlink inside the env directory for tools (e.g. `uv run`,
# editors) that expect the virtual environment alongside the project, without
# storing a second physical copy of it.
RUN ln -s /app/.venv /app/env/.venv

# Set PATH to use the virtual environment
ENV PATH="/app/.venv/bin:$PATH"

Expand Down
15 changes: 13 additions & 2 deletions src/openenv/cli/templates/openenv_env/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,28 @@ RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --no-editable; \
fi

# Move the venv out of /app/env so it isn't nested inside the directory we
# copy wholesale below. Copying /app/env/.venv separately AND /app/env would
# otherwise ship the venv twice (once at /app/.venv, once at
# /app/env/.venv), roughly doubling the image size.
RUN mv /app/env/.venv /app/.venv

# Final runtime stage
FROM ${BASE_IMAGE}

WORKDIR /app

# Copy the virtual environment from builder
COPY --from=builder /app/env/.venv /app/.venv
COPY --from=builder /app/.venv /app/.venv

# Copy the environment code
# Copy the environment code (no longer contains .venv, see builder stage)
COPY --from=builder /app/env /app/env

# Recreate a .venv symlink inside the env directory for tools (e.g. `uv run`,
# editors) that expect the virtual environment alongside the project, without
# storing a second physical copy of it.
RUN ln -s /app/.venv /app/env/.venv

# Set PATH to use the virtual environment
ENV PATH="/app/.venv/bin:$PATH"

Expand Down
Loading