Spaces:
Paused
Paused
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Install dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y lxde wget \ | |
| tigervnc-standalone-server git \ | |
| tigervnc-common | |
| # Clone noVNC repository | |
| RUN git clone https://github.com/novnc/noVNC.git /opt/noVNC \ | |
| && cd /opt/noVNC \ | |
| && git submodule update --init --recursive | |
| RUN mkdir /workspace | |
| ENV HOME="/workspace" | |
| # Install Miniconda | |
| RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | |
| && bash Miniconda3-latest-Linux-x86_64.sh -b -p /workspace/miniconda3 | |
| # Ensure Conda is on PATH and properly initialized | |
| ENV PATH="/workspace/miniconda3/bin:$PATH" | |
| # Initialize Conda and configure environment | |
| RUN conda init bash \ | |
| && conda config --env --add channels conda-forge \ | |
| && conda config --env --set channel_priority strict | |
| # Install required packages | |
| RUN conda install gdal -y \ | |
| && pip install jupyterlab==4.2.5 tornado==6.2 ipywidgets \ | |
| && conda install sqlite -y | |
| # Set the default shell | |
| ENV SHELL=/bin/bash | |
| # Copy the start script | |
| COPY ./start.sh /start | |
| # Make sure the script is executable | |
| RUN chmod +x /start | |
| RUN chmod +x /workspace/miniconda3/etc/profile.d/conda.sh | |
| # Define the entrypoint to start your application | |
| RUN chown -R root:root /workspace | |
| RUN mkdir -p /workspace/.local/share/jupyter/runtime \ | |
| && chown -R root:root /workspace/.local \ | |
| && chmod -R 777 /workspace/.local | |
| CMD ["/start"] | |