Spaces:
Running
Running
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 | |
# Install Miniconda | |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \ | |
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3 | |
# Ensure Conda is on PATH and properly initialized | |
ENV PATH="/root/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 | |
# Define the entrypoint to start your application | |
CMD ["/start"] | |