mirror of
https://github.com/umputun/reproxy.git
synced 2024-08-16 20:20:45 +03:00
22 lines
643 B
Docker
22 lines
643 B
Docker
FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build
|
|
|
|
WORKDIR /build
|
|
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/
|
|
|
|
|
|
FROM ghcr.io/umputun/reproxy
|
|
COPY --from=build /build/site /srv/site
|
|
EXPOSE 8080
|
|
USER app
|
|
ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site"]
|