All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.general-docker.training.docker.file.vm Maven / Gradle / Ivy

The newest version!
# Script for creating base training service image
#
# GENERATED DOCKERFILE - please ***DO*** modify.
#
# Generated from: ${templateName}

ARG DOCKER_BASELINE_REPO_ID
ARG VERSION_AISSEMBLE

# Start build stage based on aiSSEMBLE extension of Nvidia base image
FROM ${DOCKER_BASELINE_REPO_ID}boozallen/aissemble-nvidia:${VERSION_AISSEMBLE}

ENV GIT_PYTHON_REFRESH=quiet
ENV DEBIAN_FRONTEND=noninteractive
ENV ENABLE_LINEAGE=true

RUN apt-get -y update \
    && apt-get install -y software-properties-common \
    && add-apt-repository universe \
    && add-apt-repository ppa:deadsnakes/ppa

# Install Python 3.11 and related packages, and perform cleanup
RUN apt-get -y update \
    && apt install python3.11 python3.11-distutils gcc python3.11-dev curl -y \
    && rm -rf /var/lib/apt/lists/* \
    && apt-get clean

RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.11

# Ensure that any needed Krausening properties are copied and KRAUSENING_BASE environment variable is set!
ENV KRAUSENING_BASE /app/config
COPY target/krausening/base/ /app/config/
COPY src/main/resources/krausening/base/ /app/config/

# Install ${trainingModule} dependencies
COPY target/${trainingModule}/dist/requirements.txt /installation/${trainingModule}/
RUN python3.11 -m pip install --ignore-installed -r /installation/${trainingModule}/requirements.txt

# Install ${trainingModule}
COPY target/${trainingModule}/dist /modules/${trainingModule}
RUN set -e && \
    cd /modules/${trainingModule}; for x in *.whl; do pip install $x --no-cache-dir --no-deps; done

CMD python3.11 -m ${trainingModuleSnakeCase}.${trainingPipelineSnakeCase}_driver




© 2015 - 2025 Weber Informatics LLC | Privacy Policy