reproxy/Dockerfile.site

20 lines
695 B
Docker
Raw Normal View History

2022-08-07 23:21:34 +03:00
FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build
WORKDIR /build
2022-08-07 23:21:34 +03:00
COPY site/ /build/
COPY README.md /build/docs/index.md
2022-08-07 23:21:34 +03:00
2022-08-09 01:01:50 +03:00
RUN \
sed -i 's|https://raw.githubusercontent.com/umputun/reproxy/master/site/logo-bg.svg|logo.png|' /build/docs/index.md && \
sed -i 's|^.*/workflows/ci.yml.*$||' /build/docs/index.md
2022-08-07 23:21:34 +03:00
RUN mkdocs build
2022-08-09 00:34:12 +03:00
FROM ghcr.io/umputun/reproxy
# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/umputun/reproxy"
2022-08-07 23:21:34 +03:00
COPY --from=build /build/site /srv/site
EXPOSE 8080
USER app
2022-08-10 01:37:13 +03:00
ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site", "--assets.cache=30d", "--assets.cache=text/html:30s"]