FROM jupyter/minimal-notebook:python-3.11

# for offline builds, add ability for custom PIP repositories
ARG PIP_INDEX
ARG PIP_INDEX_URL
ARG PIP_TRUSTED_HOST

RUN pip3 install mythic==0.2.10

WORKDIR /projects

#CMD start.sh jupyter lab --ServerApp.open_browser=false --IdentityProvider.token='' --ServerApp.base_url="/jupyter" --ServerApp.default_url="/jupyter"

ENV JUPYTERHUB_SERVICE_PREFIX "/jupyter/"
ENV JUPYTER_TOKEN "mythic"
ENV JUPYTER_IP "0.0.0.0"
ENV JUPYTER_PORT "8888"

COPY ["jupyter/", "."]

CMD start.sh jupyter lab --ServerApp.allow_remote_access=true --ServerApp.open_browser=false --IdentityProvider.token=${JUPYTER_TOKEN:-mythic} --ServerApp.base_url="/jupyter" --ServerApp.default_url="/jupyter" --port=${JUPYTER_PORT} --ip=${JUPYTER_IP}
# sudo docker run -p 8888:8888 -v `pwd`/jupyter:/projects jupyter
