2022-08-07 23:21:34 +03:00
|
|
|
FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build
|
2021-04-16 20:34:03 +03:00
|
|
|
|
2021-08-12 04:21:24 +03:00
|
|
|
WORKDIR /build
|
2022-08-07 23:21:34 +03:00
|
|
|
COPY site/ /build/
|
2022-08-09 00:53:53 +03:00
|
|
|
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
|
|
|
|
2021-04-16 20:34:03 +03:00
|
|
|
|
2021-08-12 04:21:24 +03:00
|
|
|
FROM ghcr.io/umputun/reproxy
|
2024-05-09 03:03:17 +03:00
|
|
|
# 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
|
2021-08-12 04:21:24 +03:00
|
|
|
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"]
|