forked from 2i2c-org/nasa-qgis-image
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (21 loc) · 937 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM quay.io/jupyter/minimal-notebook:2024-06-24
USER root
COPY setup-scripts /opt/setup-scripts/
# Set DISPLAY env variable, so processes know where to open GUI windows.
# Allows python processes running in notebooks to open windows in the GUI.
ENV DISPLAY=":1.0"
# Setup Linux Desktop
RUN /opt/setup-scripts/setup-linux-desktop.bash
# Setup Fiji
RUN /opt/setup-scripts/setup-fiji.bash
COPY startup-scripts /usr/local/bin/start-notebook.d/
# env variables used by downstream images for setting up desktop files or
# mime associations. Consumed by the startup-scripts in startup-scripts/
ENV DESKTOP_FILES_DIR /opt/desktop-files
ENV MIME_FILES_DIR /opt/mime-files
RUN mkdir -p ${DESKTOP_FILES_DIR} ${MIME_FILES_DIR}
USER ${NB_UID}
COPY fiji.desktop ${DESKTOP_FILES_DIR}/fiji.desktop
# Autostart fiji on startup
COPY fiji.desktop /etc/xdg/autostart/fiji.desktop
RUN python -m pip install --no-cache jupyter-remote-desktop-proxy