# Log in to GitHub's registry with a token that has the write:packages scopeecho"$GITHUB_TOKEN"|docker login ghcr.io -u USER --password-stdin
What you want
Command
Give the image its registry name
docker tag ltee-project:0.1.0 ghcr.io/USER/ltee-project:0.1.0
Upload it
docker push ghcr.io/USER/ltee-project:0.1.0
On a cluster, Apptainer runs the same image without Docker: see the Apptainer cheat sheet.
A Dockerfile in six instructions
Instruction
What it does
FROM ubuntu:24.04
start from this image
WORKDIR /work
the folder later instructions and the container start in
COPY pixi.toml pixi.lock ./
copy files from the build folder into the image
RUN pixi install --locked
run a command while building, and keep its result
ENV PATH=...
set an environment variable for the container
ENTRYPOINT / CMD
what the container runs when it starts
The course’s containers/Dockerfile builds in two stages: Pixi installs the environment from pixi.lock, then only the environment is copied into a plain Ubuntu image. See section 5.