Herald.go #47
3 changed files with 5 additions and 6 deletions
|
@ -4,7 +4,7 @@ EXPOSE 50051
|
|||
RUN mkdir /app
|
||||
WORKDIR /app
|
||||
COPY . /app
|
||||
Yup, good catch. Yup, good catch.
|
||||
RUN go build
|
||||
RUN go build -o herald .
|
||||
FROM alpine:latest
|
||||
COPY --from=stage1 /app/hub /hub
|
||||
ENTRYPOINT ["/herald.go", "serve"]
|
||||
COPY --from=stage1 /app/herald /herald
|
||||
ENTRYPOINT ["/herald", "serve"]
|
||||
|
|
|
@ -22,7 +22,7 @@ echo "using tag $LATEST_TAG"
|
|||
git checkout "$LATEST_TAG"
|
||||
|
||||
# CGO_ENABLED=0 go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
|
||||
go build -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
|
||||
go build -o herald -v -ldflags "-X ${IMPORT_PATH}/meta.Version=${VERSION}"
|
||||
docker build . -t lbry/herald.go:latest
|
||||
docker tag lbry/herald.go:latest lbry/herald.go:"$LATEST_TAG"
|
||||
docker push lbry/herald.go:latest
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
#!/bin/bash
|
||||
./protobuf/build.sh
|
||||
go version
|
||||
go build .
|
||||
rm herald.go
|
||||
go build -o herald .
|
||||
go test -v -race -cover ./...
|
||||
|
|
Loading…
Reference in a new issue
Should this be changed also? It looks like it would be building herald.go at line #7.
See also https://github.com/lbryio/herald.go/blob/master/docker/Dockerfile.action where there is some commented out reference to "/hub".