@@ -21,8 +21,7 @@ ARG DASK_GATEWAY_TAG=2024.1.0
2121USER root
2222
2323COPY ./*.whl ./
24- COPY ./resources/requirements-dask-eopf.txt /opt/
25- COPY ./resources/requirements-dask-staging.txt /opt/
24+ COPY ./resources/requirements-dask-*.txt /opt/
2625COPY ./resources/layer-cleanup.sh /usr/local/bin/
2726RUN chmod 755 /usr/local/bin/layer-cleanup.sh
2827
@@ -44,7 +43,7 @@ RUN --mount=type=secret,id=GITLAB_EOPF_TOKEN \
4443 RS_SERVER_COMMON_WHEEL=$(find . -maxdepth 1 -type f -name 'rs_server_common-*-py3-none-any.whl' | head -n 1) \
4544 RS_SERVER_STAGING_WHEEL=$(find . -maxdepth 1 -type f -name 'rs_server_staging-*-py3-none-any.whl' | head -n 1) \
4645 pip install -U -r /opt/requirements-${IMAGE2BUILD}.txt && \
47- rm -f /opt/Dockerfile.requirements.txt /opt/requirements-dask-eopf.txt /opt/requirements-dask-staging .txt ./*.whl && \
46+ rm -f /opt/Dockerfile.requirements.txt /opt/requirements-dask-* .txt ./*.whl && \
4847 layer-cleanup.sh
4948
5049# Install Dask with correct version
@@ -62,7 +61,7 @@ RUN pip install opentelemetry-distro opentelemetry-exporter-otlp opentelemetry-i
6261 opentelemetry-bootstrap -a install && \
6362 layer-cleanup.sh
6463
65- RUN if [ "${IMAGE2BUILD}" = "dask-eopf " ]; then \
64+ RUN if [ "${IMAGE2BUILD}" ! = "dask-staging " ]; then \
6665 apt update && apt install -y python3-pydot graphviz && layer-cleanup.sh; \
6766 fi
6867RUN apt autoremove -y gcc && layer-cleanup.sh
@@ -76,6 +75,11 @@ WORKDIR /home/user
7675# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
7776#
7877LABEL org.opencontainers.image.source="https://github.com/RS-PYTHON/rs-infra-core"
79- # ghcr.io/rs-python/rs-infra-core-dask-staging or ghcr.io/rs-python/rs-infra-core-dask-eopf
8078LABEL org.opencontainers.image.ref.name="ghcr.io/rs-python/rs-infra-core-${IMAGE2BUILD}"
8179LABEL dockerfile.url="https://github.com/RS-PYTHON/rs-infra-core/blob/develop/.github/dask-gateway/Dockerfile"
80+
81+ # This Dockerfile is used to build:
82+ # ghcr.io/rs-python/rs-infra-core-dask-staging
83+ # ghcr.io/rs-python/rs-infra-core-dask-l0
84+ # ghcr.io/rs-python/rs-infra-core-dask-s1ard
85+
0 commit comments