Skip to content
Snippets Groups Projects
Commit 51151c0b authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[dockerfile] Add prototype

parent 94313ec4
No related branches found
No related tags found
1 merge request!37Add dockerfile
FROM ghcr.io/prefix-dev/pixi:latest AS build
COPY . /app
WORKDIR /app
RUN pixi install -e cuda
RUN pixi run postinstall-production
RUN pixi shell-hook -e cuda > /run
RUN echo "mednet" >> /run
FROM ubuntu:22.04 AS production
# only copy the production environment into prod container
COPY --from=build /app/.pixi/envs/cuda /app/.pixi/envs/cuda
COPY --from=build /shell-hook /shell-hook
RUN apt update \
&& apt install -y libgl1-mesa-glx > /dev/null \
&& apt-get clean && apt-get autoclean && apt-get autoremove \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
CMD ["/bin/bash", "/run"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment