mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
remove mkdir, add set -ex
This commit is contained in:
parent
b9fb833af4
commit
dcb708e3e3
@ -2,15 +2,15 @@ FROM golang:1.15.5-alpine AS builder
|
|||||||
|
|
||||||
RUN go env -w GO111MODULE=auto \
|
RUN go env -w GO111MODULE=auto \
|
||||||
&& go env -w CGO_ENABLED=0 \
|
&& go env -w CGO_ENABLED=0 \
|
||||||
&& go env -w GOPROXY=https://goproxy.cn,direct \
|
&& go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
&& mkdir /build
|
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
COPY ./ .
|
COPY ./ .
|
||||||
|
|
||||||
RUN cd /build \
|
RUN set -ex \
|
||||||
&& go build -ldflags "-s -w -extldflags '-static'" -o cqhttp
|
&& cd /build \
|
||||||
|
&& go build -ldflags "-s -w -extldflags '-static'" -o cqhttp
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user