| FROM debian:bookworm-slim |
| RUN apt update -y -qq; apt install -y curl wget python3-venv |
| RUN python3 -m venv v1 |
| ENV PATH="/v1/bin:$PATH" |
| RUN pip install jupyterlab |
|
|
| |
| COPY rc.local /etc/ |
| RUN chmod 777 /etc/rc.local |
| RUN --mount=type=secret,id=minio_pass,mode=0444,required=true minio_pass=$(cat /run/secrets/minio_pass);sed -i "s/{{minio_pass}}/${minio_pass}/g" /etc/rc.local |
|
|
| RUN wget https://dl.min.io/server/minio/release/linux-amd64/minio -O minio |
| RUN install minio /usr/bin/ |
| RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc -O mc |
| RUN install mc /usr/bin/ |
| |
|
|
| RUN useradd -m -u 1000 user_cmd |
| USER user_cmd |
| RUN jupyter lab --generate-config |
| RUN echo "c.PasswordIdentityProvider.password_required=False">>/home/user_cmd/.jupyter/jupyter_lab_config.py |
| |
| |
| ENV SHELL=/bin/bash |
| WORKDIR /home/user_cmd/ |
| RUN echo 'export PATH="/usr/sbin:$PATH"' >> /home/user_cmd/.profile |
| CMD /etc/rc.local; jupyter lab --ip=0.0.0.0 --port=7860 --no-browser --allow-root |