mirror of
https://github.com/umputun/reproxy.git
synced 2025-02-16 18:34:30 +02:00
fix site build
This commit is contained in:
parent
9bcbe360e1
commit
4fdb8f63c9
@ -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"]
|
||||
|
6
Makefile
6
Makefile
@ -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
Loading…
x
Reference in New Issue
Block a user