From d4b8c2350b449c548c6f17313ae352db1b3f7b06 Mon Sep 17 00:00:00 2001 From: Avni Date: Tue, 27 Jan 2026 18:48:42 +0100 Subject: [PATCH] Fix Dockerfile to use banner templates --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2bb0655..8d435d1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,11 +18,12 @@ RUN pip install --no-cache-dir -r requirements.txt COPY bashgen/app.py . COPY bashgen/templates/ ./templates/ -# Copy banner markdown files (prefer workingscope, fallback to templates) -COPY workingscope/loginbanner.md workingscope/postloginbanner.md workingscope/ 2>/dev/null || \ - (mkdir -p workingscope && \ - cp bashgen/templates/loginbanner.md.template workingscope/loginbanner.md && \ - cp bashgen/templates/postloginbanner.md.template workingscope/postloginbanner.md) +# Copy banner markdown files +# Use templates directory as source, copy to workingscope in container +COPY bashgen/templates/loginbanner.md.template bashgen/templates/postloginbanner.md.template /tmp/ +RUN mkdir -p /app/workingscope && \ + cp /tmp/loginbanner.md.template /app/workingscope/loginbanner.md && \ + cp /tmp/postloginbanner.md.template /app/workingscope/postloginbanner.md # Expose port EXPOSE 8080