-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (29 loc) · 1.19 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM mambaorg/micromamba as base
# The environment variable ensures that the python output is set straight
# to the terminal without buffering it first
ENV PYTHONUNBUFFERED 1
WORKDIR /app
COPY ./environment.yml /app
RUN micromamba install -y -n base -f environment.yml && micromamba clean -afy
ENV MAMBA_DOCKERFILE_ACTIVATE=1
RUN python -c 'import uuid; print(uuid.uuid4())' > /tmp/my_uuid
# RUN pip install -r requirements_minimal.txt
USER root
RUN mkdir -p /notebook_dir/writable-workspace && chown -R ${MAMBA_USER} /notebook_dir
WORKDIR /
COPY --chown=${MAMBA_USER} . app
WORKDIR /app
RUN pip install --no-dependencies ./
USER ${MAMBA_USER}
EXPOSE 5006
# LANG is used in dashboard.py to set the language on initial load.
# It can be changed in the about section, but this is not visible on climatedata.ca
ENV LANG=en
# PREFIX is used in start_panel.sh to set the subpath for the dashboard.
# Dashboard will be available at http://<host>:<port_external>/<PREFIX>/Dashboard
ENV PREFIX=analogs
# SHOW_HEADER and SHOW_MODAL control whether the header and modal are shown, respectively.
# Unset/set to 0 to hide them. (for climatedata.ca)
ENV SHOW_HEADER=1
ENV SHOW_MODAL=1
CMD exec ./start_panel.sh