From 6886964d430915f976ca0d4501fa1d2cad0caaae Mon Sep 17 00:00:00 2001 From: elimoshkovich Date: Tue, 19 Mar 2024 19:00:26 +0200 Subject: [PATCH] wip3 --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 \