nemo_gym.tasks.harbor.dockerfile
nemo_gym.tasks.harbor.dockerfile
Recognize Dockerfiles that only name a base image.
Many tasks ship a Dockerfile that is FROM <image> plus WORKDIR, ENV,
USER or LABEL lines. Nothing in such a file changes the filesystem, so Gym
can run the base image directly and apply the recorded settings at sandbox creation
instead of building. Anything else (RUN, COPY, ADD, multi-stage builds,
ARG-templated images) needs a real build, which is not part of this loader yet.
Module Contents
Classes
Functions
Data
API
A Dockerfile that reduces to a base image plus creation-time settings.
Join continuations without inventing whitespace; drop comments and blanks.
Return faithfully interpreted settings, or None when a build is needed.
Variable expansion and relative working directories depend on the base image’s configuration. Leave those to a real build until that configuration is available.