forked from Aquaveo/ngiab-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (39 loc) · 984 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM gioelkin/tethys-ngiab:dev-r1
###################
# BUILD ARGUMENTS #
###################
ARG MICRO_TETHYS=true \
MAMBA_DOCKERFILE_ACTIVATE=1
#########################
# ADD APPLICATION FILES #
#########################
COPY . ${TETHYS_HOME}/apps/ngiab
###############
# ENVIRONMENT #
###############
ENV TETHYS_DB_ENGINE=django.db.backends.sqlite3
ENV TETHYS_DB_NAME=
ENV TETHYS_DB_USERNAME=
ENV TETHYS_DB_PASSWORD=
ENV TETHYS_DB_HOST=
ENV TETHYS_DB_PORT=
ENV ENABLE_OPEN_PORTAL=True
ENV PORTAL_SUPERUSER_NAME=admin
ENV PORTAL_SUPERUSER_PASSWORD=pass
ENV PROJ_LIB=/opt/conda/envs/tethys/share/proj
#######################
# INSTALL APPLICATION #
#######################
RUN cd ${TETHYS_HOME}/apps/ngiab && \
micromamba install --yes -c conda-forge --file requirements.txt && \
micromamba clean --all --yes && \
npm install && npm run build && \
tethys install -d -N
#########
# PORTS #
#########
EXPOSE 80
#######
# RUN #
#######
CMD bash run.sh