|
1 | 1 | FROM tethysplatform/tethys-core:dev-py3.10-dj3.2 as base
|
2 | 2 |
|
3 |
| -ARG MAMBA_DOCKERFILE_ACTIVATE=1 |
4 |
| - |
5 |
| -############# |
6 |
| -# ADD FILES # |
7 |
| -############# |
8 |
| - |
9 |
| -COPY apps ${TETHYS_HOME}/apps |
10 |
| -COPY requirements/*.txt . |
11 |
| - |
12 |
| -######################## |
13 |
| -# INSTALL APPLICATIONS # |
14 |
| -######################## |
15 |
| -RUN micromamba install --yes -c conda-forge --file requirements.txt && \ |
16 |
| - cd ${TETHYS_HOME}/apps/tethysapp-geoglows_dashboard && tethys install -w -N -q && \ |
17 |
| - cd ${TETHYS_HOME}/apps/ggst && tethys install -w -N -q && \ |
18 |
| - cd ${TETHYS_HOME}/apps/gwdm && tethys install -w -N -q |
19 |
| - |
20 |
| - |
21 |
| -# Final Image Build |
22 |
| -FROM tethysplatform/tethys-core:dev-py3.10-dj3.2 as build |
23 |
| - |
24 | 3 |
|
25 | 4 | ENV TETHYS_DOMAIN="localhost"
|
26 | 5 | ENV TETHYS_THREDDS_PROTOCOL="http"
|
@@ -69,16 +48,30 @@ ENV THREDDS_TDS_PUBLIC_HOST=""
|
69 | 48 | ENV THREDDS_TDS_PRIVATE_HOST=""
|
70 | 49 |
|
71 | 50 |
|
| 51 | +ARG MAMBA_DOCKERFILE_ACTIVATE=1 |
72 | 52 |
|
73 |
| -COPY --chown=www:www --from=base ${CONDA_HOME}/envs/${CONDA_ENV_NAME} ${CONDA_HOME}/envs/${CONDA_ENV_NAME} |
74 |
| -COPY config/apps/post_setup_gwdm.py ${TETHYS_HOME} |
75 |
| -COPY salt/ /srv/salt/ |
| 53 | +############# |
| 54 | +# ADD FILES # |
| 55 | +############# |
76 | 56 |
|
77 |
| -ARG MAMBA_DOCKERFILE_ACTIVATE=1 |
| 57 | +COPY apps ${TETHYS_HOME}/apps |
| 58 | +COPY requirements/*.txt . |
78 | 59 |
|
79 |
| -RUN rm -Rf ~/.cache/pip && \ |
| 60 | +######################## |
| 61 | +# INSTALL APPLICATIONS # |
| 62 | +######################## |
| 63 | +RUN micromamba install --yes -c conda-forge --file requirements.txt && \ |
80 | 64 | micromamba install --yes -c conda-forge numpy==1.26.4 && \
|
81 |
| - micromamba clean --all --yes |
| 65 | + micromamba clean --all --yes && \ |
| 66 | + rm -Rf ~/.cache/pip && \ |
| 67 | + cd ${TETHYS_HOME}/apps/tethysapp-geoglows_dashboard && tethys install -w -N -q && \ |
| 68 | + cd ${TETHYS_HOME}/apps/ggst && tethys install -w -N -q && \ |
| 69 | + cd ${TETHYS_HOME}/apps/gwdm && tethys install -w -N -q |
| 70 | + |
| 71 | + |
| 72 | +COPY config/apps/post_setup_gwdm.py ${TETHYS_HOME} |
| 73 | +COPY salt/ /srv/salt/ |
| 74 | + |
82 | 75 |
|
83 | 76 | EXPOSE 80
|
84 | 77 | CMD bash -c "salt-call --local state.apply -l info | tee /var/log/salt.log && bash run.sh"
|
0 commit comments