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
|
|
|
RUN mkdir -p /build/docs
|
|
|
|
COPY README.md /build/docs/index.md
|
|
|
|
COPY site/ /build/
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
sed -i 's|^.*/workflows/ci.yml.*$||' /build/docs/index.md && \
|
|
|
|
cat /build/styles.html >> /build/docs/index.md && \
|
|
|
|
sed -i 's|https://raw.githubusercontent.com/umputun/reproxy/master/site/logo-bg.svg|logo.png|' /build/docs/index.md
|
|
|
|
RUN mkdocs build
|
|
|
|
COPY site/favicon.svg /build/site/
|
|
|
|
COPY site/logo.png /build/site/
|
2021-04-16 22:04:54 +03:00
|
|
|
|
2021-04-16 20:34:03 +03:00
|
|
|
|
2021-08-12 04:21:24 +03:00
|
|
|
FROM ghcr.io/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
|
|
|
|
ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site"]
|