diff --git a/Dockerfile b/Dockerfile index 9dfa4f00..927dd312 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,13 @@ RUN python setup.py install --user FROM golang:bullseye as OPABuildStage -COPY --optional ./permit-opa/custom /custom +# Check if the source directory exists before copying +RUN if [ -d ./permit-opa/custom ]; then \ + cp -r ./permit-opa/custom /custom; \ + else \ + echo "Source directory does not exist. Skipping."; \ + fi +#COPY ./permit-opa/custom /custom RUN if [ -f /custom/custom_opa.tar.gz ]; \ then \