-
-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathDockerfile.site
More file actions
19 lines (15 loc) · 695 Bytes
/
Dockerfile.site
File metadata and controls
19 lines (15 loc) · 695 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
# enables automatic changelog generation by tools like Dependabot
LABEL org.opencontainers.image.source="https://github.com/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"]