pull/95/head
q191201771 4 years ago
commit 82ae7c1fb5

@ -2,6 +2,10 @@
build: deps
./build.sh
.PHONY: build_linux
build_linux: deps
./build_linux.sh
.PHONY: test
test: deps
./test.sh
@ -10,6 +14,10 @@ test: deps
deps:
go get -t -v ./...
.PHONY: image
image:
docker build -f build/Dockerfile -t lal:latest .
.PHONY: clean
clean:
rm -rf ./bin ./release ./logs

@ -0,0 +1,9 @@
FROM golang:1.16.4-buster as builder
WORKDIR /go/src/github.com/q191201771/lal
#ENV GOPROXY=https://goproxy.cn,direct
COPY . .
RUN make build_linux
FROM debian:stretch-slim
COPY --from=builder /go/src/github.com/q191201771/lal/bin /lal/bin
COPY --from=builder /go/src/github.com/q191201771/lal/conf /lal/conf

@ -4,4 +4,4 @@ set -x
export GOOS=linux
export GOARCH=amd64
sh build.sh
./build.sh

Loading…
Cancel
Save