feat: add docker build commands to Makefile
This commit is contained in:
@@ -23,7 +23,7 @@ ENV GO111MODULE=on \
|
||||
CGO_ENABLED=0 \
|
||||
GOOS=$TARGETOS \
|
||||
GOARCH=$TARGETARCH
|
||||
RUN make build
|
||||
RUN make build-backend
|
||||
|
||||
FROM alpine:latest AS runner
|
||||
# 设置alpine 时间为上海时间
|
||||
|
||||
@@ -27,7 +27,7 @@ ENV GO111MODULE=on \
|
||||
CGO_ENABLED=0 \
|
||||
GOOS=$TARGETOS \
|
||||
GOARCH=$TARGETARCH
|
||||
RUN make build
|
||||
RUN make build-backend
|
||||
|
||||
FROM alpine:latest AS runner
|
||||
# 设置alpine 时间为上海时间
|
||||
|
||||
Reference in New Issue
Block a user