2022-08-07 15:21:34 -05:00
|
|
|
FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build
|
2021-04-16 20:34:03 +03:00
|
|
|
|
2021-08-11 20:21:24 -05:00
|
|
|
WORKDIR /build
|
2022-08-07 15:21:34 -05:00
|
|
|
COPY site/ /build/
|
2022-08-08 16:53:53 -05:00
|
|
|
COPY README.md /build/docs/index.md
|
2022-08-07 15:21:34 -05:00
|
|
|
|
2022-08-08 17:01:50 -05: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 15:21:34 -05:00
|
|
|
RUN mkdocs build
|
2022-08-08 16:34:12 -05:00
|
|
|
|
2021-04-16 20:34:03 +03:00
|
|
|
|
2021-08-11 20:21:24 -05:00
|
|
|
FROM ghcr.io/umputun/reproxy
|
2024-05-09 02:03:17 +02:00
|
|
|
# enables automatic changelog generation by tools like Dependabot
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/umputun/reproxy"
|
2022-08-07 15:21:34 -05:00
|
|
|
COPY --from=build /build/site /srv/site
|
2021-08-11 20:21:24 -05:00
|
|
|
EXPOSE 8080
|
|
|
|
USER app
|
2022-08-09 17:37:13 -05:00
|
|
|
ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site", "--assets.cache=30d", "--assets.cache=text/html:30s"]
|