Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/Dockerfile test environment #1878

Merged
32 changes: 18 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
FROM jupyter/base-notebook:python-3.9.5
FROM ubuntu:latest

RUN conda update --all -y --quiet \
&& conda install -c conda-forge ipywidgets -y --quiet \
&& conda clean --all -f -y
# setup packages
RUN apt-get update -y
RUN apt-get install -y python3 python-is-python3 python3-pip default-jre
RUN pip install --upgrade pip

USER root
# install python requirements before copying the rest of the files
# this way we can cache the requirements and not have to reinstall them
COPY requirements/ /app/requirements/
RUN pip install -r /app/requirements/dev-all.txt

# to build pystan
RUN apt-get update \
&& apt-get -y install build-essential \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
# copy local files
COPY . /app

USER $NB_USER
# set work directory
WORKDIR /app

ADD . /home/jovyan/work
# install darts
RUN pip install -e .

WORKDIR /home/jovyan/work

RUN pip install .
# assuming you are working out of your darts directory:
# docker build . -t darts-test:latest
dennisbader marked this conversation as resolved.
Show resolved Hide resolved
# docker run -it -v $(pwd)/:/app/ darts-test:latest bash