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,14 +2,14 @@ FROM golang:1.15.5-alpine AS builder
|
||||
|
||||
RUN go env -w GO111MODULE=auto \
|
||||
&& go env -w CGO_ENABLED=0 \
|
||||
&& go env -w GOPROXY=https://goproxy.cn,direct \
|
||||
&& mkdir /build
|
||||
&& go env -w GOPROXY=https://goproxy.cn,direct
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
COPY ./ .
|
||||
|
||||
RUN cd /build \
|
||||
RUN set -ex \
|
||||
&& cd /build \
|
||||
&& go build -ldflags "-s -w -extldflags '-static'" -o cqhttp
|
||||
|
||||
FROM alpine:latest
|
||||
|
Loading…
x
Reference in New Issue
Block a user