Skip to content

Commit

Permalink
Implment a better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyannn committed Dec 26, 2023
1 parent e956725 commit 7ec46f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ COPY build/hetzner-k3s-main/ /original/
RUN python -m unittest tests/*.py
RUN python redact.py /original /redacted

RUN python to_markdown.py /redacted /content/main/
RUN cat README.md >> /content/_index.md
COPY zola/ /project/
RUN python to_markdown.py /redacted /project/content/main/
RUN cat /original/README.md >> /project/content/_index.md


# Run Zola
FROM registry.cluster.megaver.se/library/zola as zola
WORKDIR /project
COPY zola/ ./
COPY --from=redact /content/ content/
COPY --from=redact /project/ ./
RUN ["zola", "build"]


Expand Down

0 comments on commit 7ec46f3

Please sign in to comment.