Skip to content

Commit

Permalink
Merge pull request #109 from IMMM-SFA/feature/dockerfile
Browse files Browse the repository at this point in the history
Feature/dockerfile
  • Loading branch information
erexer authored Jan 24, 2025
2 parents 62f7418 + 8f5a8f2 commit 0f8818a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Dockerfile
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

0 comments on commit 0f8818a

Please sign in to comment.