Spaces:
Paused
Paused
gghfds
commited on
Update Dockerfile
Browse files- Dockerfile +28 -12
Dockerfile
CHANGED
|
@@ -1,26 +1,42 @@
|
|
| 1 |
FROM ubuntu:22.04
|
| 2 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
|
|
|
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y lxde wget \
|
| 6 |
tigervnc-standalone-server git \
|
| 7 |
tigervnc-common
|
|
|
|
|
|
|
| 8 |
RUN git clone https://github.com/novnc/noVNC.git /opt/noVNC \
|
| 9 |
&& cd /opt/noVNC \
|
| 10 |
&& git submodule update --init --recursive
|
|
|
|
|
|
|
| 11 |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
| 12 |
-
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
|
| 13 |
-
|
| 14 |
-
|
| 15 |
ENV PATH="/root/miniconda3/bin:$PATH"
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
| 17 |
&& conda config --env --set channel_priority strict
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
RUN conda install
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
ENV SHELL=/bin/bash
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
FROM ubuntu:22.04
|
| 2 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
|
| 4 |
+
# Install dependencies
|
| 5 |
RUN apt-get update && \
|
| 6 |
apt-get install -y lxde wget \
|
| 7 |
tigervnc-standalone-server git \
|
| 8 |
tigervnc-common
|
| 9 |
+
|
| 10 |
+
# Clone noVNC repository
|
| 11 |
RUN git clone https://github.com/novnc/noVNC.git /opt/noVNC \
|
| 12 |
&& cd /opt/noVNC \
|
| 13 |
&& git submodule update --init --recursive
|
| 14 |
+
|
| 15 |
+
# Install Miniconda
|
| 16 |
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
|
| 17 |
+
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/miniconda3
|
| 18 |
+
|
| 19 |
+
# Ensure Conda is on PATH and properly initialized
|
| 20 |
ENV PATH="/root/miniconda3/bin:$PATH"
|
| 21 |
+
|
| 22 |
+
# Initialize Conda and configure environment
|
| 23 |
+
RUN conda init bash \
|
| 24 |
+
&& conda config --env --add channels conda-forge \
|
| 25 |
&& conda config --env --set channel_priority strict
|
| 26 |
+
|
| 27 |
+
# Install required packages
|
| 28 |
+
RUN conda install gdal -y \
|
| 29 |
+
&& pip install jupyterlab==4.2.5 tornado==6.2 ipywidgets \
|
| 30 |
+
&& conda install sqlite -y
|
| 31 |
+
|
| 32 |
+
# Set the default shell
|
| 33 |
ENV SHELL=/bin/bash
|
| 34 |
+
|
| 35 |
+
# Copy the start script
|
| 36 |
+
COPY ./start.sh /start
|
| 37 |
+
|
| 38 |
+
# Make sure the script is executable
|
| 39 |
+
RUN chmod +x /start
|
| 40 |
+
|
| 41 |
+
# Define the entrypoint to start your application
|
| 42 |
+
CMD ["/start"]
|