fix site build

This commit is contained in:
Umputun 2021-04-16 14:04:54 -05:00
parent 9bcbe360e1
commit 4fdb8f63c9
3 changed files with 11 additions and 5 deletions

View File

@ -2,10 +2,12 @@ FROM node:14-alpine
WORKDIR build
COPY . /build
COPY site/ /build
COPY README.md /build/src/index.md
RUN yarn --frozen-lockfile && \
yarn build && \
ls -la /public
ls -la /build/public
CMD ["sleep", "100"]

View File

@ -21,7 +21,11 @@ build: info
- cd app && GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.revision=$(REV) -s -w" -o ../dist/reproxy
build_site:
- cd site && yarn build
@rm -f site/public/*
docker build -f Dockerfile.site -t reproxy.site .
docker run -d --name=reproxy.site reproxy.site
docker cp reproxy.site:/build/public site/
docker rm -f reproxy.site
info:
- @echo "revision $(REV)"

File diff suppressed because one or more lines are too long