Skip to content

Editable packages only for specific features/environments #1860

Answered by ruben-arts
geoHeil asked this question in Q&A
Discussion options

You must be logged in to vote

Nice setup, to skip the sanity checks in the installation, you can add --frozen to all commands that want to install.

# syntax=docker/dockerfile:1.9.0

FROM ghcr.io/prefix-dev/pixi:0.27.1-bookworm

WORKDIR /app
COPY pixi.toml .
COPY pixi.lock .

RUN pixi install -e myenv-static --frozen -vvv
RUN pixi shell-hook --frozen -e myenv-static -s bash > /shell-hook
RUN echo "#!/bin/bash" > /app/entrypoint_myenv_static.sh


COPY mylib mylib
RUN pixi install -e myenv-dynamic --frozen -vv
RUN pixi shell-hook --frozen -e myenv-dynamic -s bash > /shell-hook

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@geoHeil
Comment options

@geoHeil
Comment options

@geoHeil
Comment options

@geoHeil
Comment options

@geoHeil
Comment options

Answer selected by geoHeil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants