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

[dockerfile] Use different endpoint for entrypoint script

parent bb30bf45
No related branches found
No related tags found
1 merge request!37Add dockerfile
Pipeline #86757 failed
......@@ -2,21 +2,23 @@ FROM ghcr.io/prefix-dev/pixi:latest AS build
COPY config.toml /root/.config/pixi/config.toml
COPY pyproject.toml pixi.lock /app/
RUN pixi info
WORKDIR /app
RUN pixi install --frozen -e cuda-base
COPY dist/*.whl /app/
RUN /app/.pixi/envs/cuda-base/bin/pip install --no-dependencies --no-build-isolation mednet-*.whl
RUN pixi shell-hook --frozen -e cuda-base > /run
RUN echo "mednet" >> /run.sh
RUN pixi shell-hook --frozen -e cuda-base > /entrypoint.sh
RUN echo "mednet" >> /entrypoint.sh
FROM nvidia/cuda:12.3.1-runtime-ubuntu22.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
COPY --from=build /entrypoint.sh /entrypoint.sh
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.sh"]
CMD ["/bin/bash", "/entrypoint.sh"]
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