Fix Dockerfile to use banner templates
This commit is contained in:
parent
e39533ca00
commit
d4b8c2350b
11
Dockerfile
11
Dockerfile
@ -18,11 +18,12 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY bashgen/app.py .
|
COPY bashgen/app.py .
|
||||||
COPY bashgen/templates/ ./templates/
|
COPY bashgen/templates/ ./templates/
|
||||||
|
|
||||||
# Copy banner markdown files (prefer workingscope, fallback to templates)
|
# Copy banner markdown files
|
||||||
COPY workingscope/loginbanner.md workingscope/postloginbanner.md workingscope/ 2>/dev/null || \
|
# Use templates directory as source, copy to workingscope in container
|
||||||
(mkdir -p workingscope && \
|
COPY bashgen/templates/loginbanner.md.template bashgen/templates/postloginbanner.md.template /tmp/
|
||||||
cp bashgen/templates/loginbanner.md.template workingscope/loginbanner.md && \
|
RUN mkdir -p /app/workingscope && \
|
||||||
cp bashgen/templates/postloginbanner.md.template workingscope/postloginbanner.md)
|
cp /tmp/loginbanner.md.template /app/workingscope/loginbanner.md && \
|
||||||
|
cp /tmp/postloginbanner.md.template /app/workingscope/postloginbanner.md
|
||||||
|
|
||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user