@@ -7,15 +7,17 @@ ENV PATH="${JAVA_HOME}/bin:${PATH}"
77RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends \
88 build-essential curl git util-linux jq sudo nodejs npm fonts-noto-cjk
99
10+ RUN mkdir -p /home/user/.jupyter /home/user/.ipython /home/user/.server
11+
1012ENV PIP_DEFAULT_TIMEOUT=100 \
1113 PIP_DISABLE_PIP_VERSION_CHECK=1 \
1214 PIP_NO_CACHE_DIR=1 \
13- JUPYTER_CONFIG_PATH="/root /.jupyter" \
14- IPYTHON_CONFIG_PATH="/root /.ipython" \
15- SERVER_PATH="/root /.server"
15+ JUPYTER_CONFIG_PATH="/home/user /.jupyter" \
16+ IPYTHON_CONFIG_PATH="/home/user /.ipython" \
17+ SERVER_PATH="/home/user /.server"
1618
1719# Install Jupyter
18- COPY ./template/ requirements.txt requirements.txt
20+ COPY ./requirements.txt requirements.txt
1921RUN pip install --no-cache-dir -r requirements.txt && ipython kernel install --name "python3" --user
2022
2123# Javascript Kernel
@@ -27,34 +29,34 @@ RUN ijsinstall --install=global
2729COPY --from=denoland/deno:bin-2.0.4 /deno /usr/bin/deno
2830RUN chmod +x /usr/bin/deno
2931RUN deno jupyter --unstable --install
30- COPY ./template/ deno.json /root /.local/share/jupyter/kernels/deno/kernel.json
32+ COPY ./deno.json /home/user /.local/share/jupyter/kernels/deno/kernel.json
3133
3234# Create separate virtual environment for server
3335RUN python -m venv $SERVER_PATH/.venv
3436
3537# Copy server and its requirements
3638RUN mkdir -p $SERVER_PATH/
37- COPY ./template/ server/requirements.txt $SERVER_PATH
39+ COPY ./server/requirements.txt $SERVER_PATH
3840RUN $SERVER_PATH/.venv/bin/pip install --no-cache-dir -r $SERVER_PATH/requirements.txt
39- COPY ./template/ server $SERVER_PATH
41+ COPY ./server $SERVER_PATH
4042
4143# Copy matplotlibrc
42- COPY ./template/ matplotlibrc /root /.config/matplotlib/matplotlibrc
44+ COPY ./matplotlibrc /home/user /.config/matplotlib/matplotlibrc
4345
4446# Copy Jupyter configuration
45- COPY ./template/ start-up.sh $JUPYTER_CONFIG_PATH/
47+ COPY ./start-up.sh $JUPYTER_CONFIG_PATH/
4648RUN chmod +x $JUPYTER_CONFIG_PATH/start-up.sh
4749
48- COPY ./template/ jupyter_server_config.py $JUPYTER_CONFIG_PATH/
50+ COPY ./jupyter_server_config.py $JUPYTER_CONFIG_PATH/
4951
5052RUN mkdir -p $IPYTHON_CONFIG_PATH/profile_default
51- COPY ./template/ ipython_kernel_config.py $IPYTHON_CONFIG_PATH/profile_default/
53+ COPY ./ipython_kernel_config.py $IPYTHON_CONFIG_PATH/profile_default/
5254
5355RUN mkdir -p $IPYTHON_CONFIG_PATH/profile_default/startup
54- COPY ./template/ startup_scripts/* $IPYTHON_CONFIG_PATH/profile_default/startup
56+ COPY ./startup_scripts/* $IPYTHON_CONFIG_PATH/profile_default/startup
5557
5658# Setup entrypoint for local development
5759WORKDIR /home/user
58- COPY ./chart_data_extractor ./chart_data_extractor
59- RUN pip install -e ./chart_data_extractor
60+ # COPY ./chart_data_extractor ./chart_data_extractor
61+ # RUN pip install -e ./chart_data_extractor
6062ENTRYPOINT $JUPYTER_CONFIG_PATH/start-up.sh
0 commit comments