Skip to content

Commit

Permalink
Merge pull request #452 from brownchow/master
Browse files Browse the repository at this point in the history
remove mkdir, add set -ex
  • Loading branch information
Mrs4s authored Nov 29, 2020
2 parents b9fb833 + dcb708e commit ffb2fae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ 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 \
&& go build -ldflags "-s -w -extldflags '-static'" -o cqhttp
RUN set -ex \
&& cd /build \
&& go build -ldflags "-s -w -extldflags '-static'" -o cqhttp

FROM alpine:latest

Expand Down

0 comments on commit ffb2fae

Please sign in to comment.