-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from IMMM-SFA/feature/dockerfile
Feature/dockerfile
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Stage 1: Build Stage | ||
FROM ghcr.io/msd-live/jupyter/python-notebook:latest as builder | ||
|
||
USER root | ||
|
||
RUN apt-get update | ||
|
||
# Install cerf | ||
RUN pip install --upgrade pip | ||
RUN pip install cerf | ||
|
||
# Stage 2: Final Stage | ||
FROM ghcr.io/msd-live/jupyter/python-notebook:latest | ||
|
||
USER root | ||
|
||
RUN apt-get update | ||
|
||
# Copy python packages installed/built from the builder stage | ||
COPY --from=builder /opt/conda/lib/python3.11/site-packages /opt/conda/lib/python3.11/site-packages | ||
|
||
# To test this container locally, run: | ||
# docker build -t im3sfa/cerf-msdlive . | ||
# docker run --rm -p 8888:8888 im3sfa/cerf-msdlive |