change site docker build to proper two-stage with repoxy to serve content

This commit is contained in:
Umputun
2021-08-08 13:55:10 -05:00
parent 9df8de511a
commit 628dd898b6
+6 -1
View File
@@ -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"]