Skip to content

Commit

Permalink
Fix copy of prod pixi env, change sharing=private
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennings Zhang authored and Jennings Zhang committed Aug 29, 2024
1 parent f12fa86 commit 1f9a52e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ghcr.io/prefix-dev/pixi:0.27.1 AS install
COPY . /app
WORKDIR /app

RUN --mount=type=cache,target=/root/.cache/rattler/cache,sharing=locked pixi install
RUN --mount=type=cache,target=/root/.cache/rattler/cache,sharing=private pixi install

# development stage
FROM install AS dev
Expand All @@ -25,6 +25,7 @@ RUN pixi run postinstall-production
# production minimal image
FROM docker.io/library/debian:bookworm-slim

ARG ENVIRONMENT=prod
COPY --from=build /app/.pixi/envs/${ENVIRONMENT} /app/.pixi/envs/${ENVIRONMENT}
COPY --from=build /entrypoint.sh /entrypoint.sh

Expand Down

0 comments on commit 1f9a52e

Please sign in to comment.