2022-08-07 22:21:34 +02:00
|
|
|
FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build
|
2021-04-16 19:34:03 +02:00
|
|
|
|
2021-08-12 03:21:24 +02:00
|
|
|
WORKDIR /build
|
2022-08-07 22:21:34 +02:00
|
|
|
COPY site/ /build/
|
2022-08-08 23:53:53 +02:00
|
|
|
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
|
|
|
|
2021-04-16 19:34:03 +02:00
|
|
|
|
2021-08-12 03:21:24 +02: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 22:21:34 +02:00
|
|
|
COPY --from=build /build/site /srv/site
|
2021-08-12 03:21:24 +02:00
|
|
|
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"]
|