-
Notifications
You must be signed in to change notification settings - Fork 0
/
worker.Dockerfile
48 lines (39 loc) · 1.53 KB
/
worker.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM python:3.6-slim
RUN apt-get update && \
apt-get install -y --no-install-recommends curl git
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
apt-get update && \
apt-get install -y --no-install-recommends nodejs
RUN pip3 install \
jupyter \
jupyterlab==1.2.6 \
nest_asyncio \
numpy \
pandas \
scipy==1.2.1 \
xlrd \
ipywidgets && \
jupyter nbextension enable --py widgetsnbextension && \
jupyter labextension install @jupyter-widgets/jupyterlab-manager
COPY build/jupyter_notebook_config.py /root/.jupyter/
COPY build/startup.py /root/.ipython/profile_default/startup/startup.py
ENV DAGSTER_HOME=/opt/dagster/home
WORKDIR /opt/dagster/app
ARG origin=dagster-io
ARG branch=master
RUN git clone --depth 1 -b $branch https://github.com/$origin/dagster.git && \
pip install \
-e dagster/python_modules/dagster \
-e dagster/python_modules/dagster-graphql \
-e dagster/python_modules/libraries/dagstermill \
-e dagster/python_modules/libraries/dagster-aws \
-e dagster/python_modules/libraries/dagster-celery \
-e dagster/python_modules/libraries/dagster-postgres
COPY build/dagster.yaml /opt/dagster/home/dagster.yaml
COPY build/workspace.yaml ./
COPY cube ./cube
CMD ["jupyter", "lab", "--allow-root", "--no-browser"]
# If you want to develop dagster and need your code in worker images
# cp -r <dagster_source_path>/python_modules ./
# and uncomment this line:
# COPY python_modules ./dagster/python_modules