Ensure target OS is set to Linux for Docker builds

This commit is contained in:
Khaled Elkhawaga 2019-11-15 14:58:02 +01:00
parent ab1dca69c9
commit 246339c84a
1 changed files with 1 additions and 0 deletions

View File

@ -1,6 +1,7 @@
FROM golang:1.12 as builder
ENV GO111MODULE=on
ENV CGO_ENABLED=0
ENV GOOS=linux
WORKDIR /go/src/github.com/cloudflare/cloudflared/
RUN apt-get update && apt-get install -y --no-install-recommends upx
# Run after `apt-get update` to improve rebuild scenarios