mirror of
https://github.com/umputun/reproxy.git
synced 2024-08-17 12:40:30 +03:00
18 lines
554 B
Docker
18 lines
554 B
Docker
FROM --platform=$BUILDPLATFORM squidfunk/mkdocs-material as build
|
|
|
|
WORKDIR /build
|
|
COPY site/ /build/
|
|
COPY README.md /build/docs/index.md
|
|
|
|
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
|
|
RUN mkdocs build
|
|
|
|
|
|
FROM ghcr.io/umputun/reproxy
|
|
COPY --from=build /build/site /srv/site
|
|
EXPOSE 8080
|
|
USER app
|
|
ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site", "--assets.cache=30d", "--assets.cache=text/html:30s"]
|