From 628dd898b6c62513ab723213e70bf94b1b351ea5 Mon Sep 17 00:00:00 2001 From: Umputun Date: Sun, 8 Aug 2021 13:55:10 -0500 Subject: [PATCH] change site docker build to proper two-stage with repoxy to serve content --- site/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/site/Dockerfile b/site/Dockerfile index b51790a5..6393ff20 100644 --- a/site/Dockerfile +++ b/site/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine +FROM node:16-alpine as build WORKDIR /site COPY ./ /site @@ -6,3 +6,8 @@ RUN yarn --frozen-lockfile CMD yarn build +FROM ghcr.io/umputun/reproxy +COPY --from=build /site/build /srv/site +EXPOSE 8080 +USER app +ENTRYPOINT ["/srv/reproxy", "--assets.location=/srv/site"]