1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 11:33:48 +08:00

Merge pull request #452 from brownchow/master

remove mkdir, add set -ex
This commit is contained in:
Mrs4s 2020-11-29 21:05:54 +08:00 committed by GitHub
commit ffb2faeae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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