From 9daf30154bf3329cedb2f8af1e2244e9867370a8 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Thu, 16 Jan 2025 18:56:34 +0200 Subject: [PATCH] FIXUP: Copy all the Python files from the conversion/ dir --- Dockerfile | 7 ++----- Dockerfile.in | 7 ++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1d1fc98..99eb446 100644 --- a/Dockerfile +++ b/Dockerfile @@ -61,11 +61,8 @@ RUN adduser --uid 1000 --ingroup dangerzone --shell /bin/true \ RUN mkdir -p /opt/dangerzone/dangerzone RUN touch /opt/dangerzone/dangerzone/__init__.py -COPY conversion/doc_to_pixels.py \ - conversion/common.py \ - conversion/errors.py \ - conversion/__init__.py \ - /opt/dangerzone/dangerzone/conversion +# Copy only the Python code, and not any produced .pyc files. +COPY conversion/*.py /opt/dangerzone/dangerzone/conversion # Let the entrypoint script write the OCI config for the inner container under # /config.json. diff --git a/Dockerfile.in b/Dockerfile.in index 58dfe4e..42b55d6 100644 --- a/Dockerfile.in +++ b/Dockerfile.in @@ -61,11 +61,8 @@ RUN adduser --uid 1000 --ingroup dangerzone --shell /bin/true \ RUN mkdir -p /opt/dangerzone/dangerzone RUN touch /opt/dangerzone/dangerzone/__init__.py -COPY conversion/doc_to_pixels.py \ - conversion/common.py \ - conversion/errors.py \ - conversion/__init__.py \ - /opt/dangerzone/dangerzone/conversion +# Copy only the Python code, and not any produced .pyc files. +COPY conversion/*.py /opt/dangerzone/dangerzone/conversion # Let the entrypoint script write the OCI config for the inner container under # /config.json.