generated from DiamondLightSource/bookshelf-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (15 loc) · 582 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
ARG PYTHON_VERSION=3.10
FROM python:${PYTHON_VERSION} as interactive
ENV WORKDIR=/environment
WORKDIR ${WORKDIR}
COPY . ${WORKDIR}
RUN pip install --upgrade .[interactive]
EXPOSE 8888
CMD ["jupyter-lab", "--ip=0.0.0.0", "--allow-root"]
FROM python:${PYTHON_VERSION}-slim as processing
ENV WORKDIR=/environment
WORKDIR ${WORKDIR}
COPY . ${WORKDIR}
RUN pip install --upgrade .[processing]
VOLUME /inputs /outputs
ENTRYPOINT ["papermill", "notebook.ipynb", "/outputs/notebook.ipynb", "--parameters", "OUTPUT_PREFIX", "/outputs", "--parameters", "INPUT_PREFIX", "/inputs"]