1
0
mirror of https://github.com/umputun/reproxy.git synced 2024-11-16 20:25:52 +02:00
reproxy/Dockerfile.site

20 lines
695 B
Docker
Raw Permalink Normal View History

2022-08-07 22:21:34 +02:00
FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build
WORKDIR /build
2022-08-07 22:21:34 +02:00
COPY site/ /build/
COPY README.md /build/docs/index.md
2022-08-07 22:21:34 +02:00
2022-08-09 00:01:50 +02: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 22:21:34 +02:00
RUN mkdocs build
2022-08-08 23:34:12 +02: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 22:21:34 +02:00
COPY --from=build /build/site /srv/site
EXPOSE 8080
USER app
2022-08-10 00:37:13 +02:00
ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site", "--assets.cache=30d", "--assets.cache=text/html:30s"]