Anpassung für dynamische Content-Gits
Some checks failed
release-tag / release-image (push) Failing after 43s
Some checks failed
release-tag / release-image (push) Failing after 43s
This commit is contained in:
@@ -31,6 +31,7 @@ RUN mkdir -p /out/content /out/static /out/pages
|
||||
RUN find /src/articles -name '*.md' -exec cp {} /out/content/ \;
|
||||
RUN cp -r /src/static/* /out/static/
|
||||
RUN cp -r /src/pages/* /out/pages/
|
||||
RUN cp -r /src/templates/* /out/templates/
|
||||
|
||||
|
||||
############################
|
||||
@@ -52,10 +53,12 @@ COPY . /app
|
||||
COPY --from=content /out/content /content
|
||||
COPY --from=content /out/static /static
|
||||
COPY --from=content /out/pages /pages
|
||||
COPY --from=content /out/templates /templates
|
||||
|
||||
ENV BLOG_CONTENT_DIR=/content
|
||||
ENV BLOG_STATIC_DIR=/static
|
||||
ENV BLOG_PAGES_DIR=/pages
|
||||
ENV BLOG_TEMPLATES_DIR=/templates
|
||||
|
||||
EXPOSE 8080
|
||||
CMD ["blog"]
|
||||
|
Reference in New Issue
Block a user