Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
medai
software
mednet
Commits
6666960c
Commit
6666960c
authored
10 months ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
[dockerfile] Use different endpoint for entrypoint script
parent
bb30bf45
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!37
Add dockerfile
Pipeline
#86757
failed
10 months ago
Stage: qa
Stage: doc
Stage: dist
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+6
-4
6 additions, 4 deletions
Dockerfile
with
6 additions
and
4 deletions
Dockerfile
+
6
−
4
View file @
6666960c
...
...
@@ -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"]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment