diff --git a/opm-example.Dockerfile b/opm-example.Dockerfile index a59dfb1af..3e368fbc0 100644 --- a/opm-example.Dockerfile +++ b/opm-example.Dockerfile @@ -4,10 +4,11 @@ FROM quay.io/operator-framework/opm:latest # Configure the entrypoint and command ENTRYPOINT ["/bin/opm"] -CMD ["serve", "/configs"] +CMD ["serve", "/configs", "--cache-dir=/tmp/cache"] -# Copy declarative config root into image at /configs +# Copy declarative config root into image at /configs and pre-populate serve cache ADD index /configs +RUN ["/bin/opm", "serve", "/configs", "--cache-dir=/tmp/cache", "--cache-only"] # Set DC-specific label for the location of the DC root directory # in the image