Browse Source

Fix Dockerfile to pass along the correct platform name

pull/794/head
Gabe Kangas 5 years ago
parent
commit
e713852c67
  1. 2
      build/release/Dockerfile-build

2
build/release/Dockerfile-build

@ -13,7 +13,7 @@ ENV GIT_COMMIT=${GIT_COMMIT} @@ -13,7 +13,7 @@ ENV GIT_COMMIT=${GIT_COMMIT}
ARG NAME
ENV NAME=${NAME}
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflags \"-static\" -s -w -X main.GitCommit=$GIT_COMMIT -X main.BuildVersion=$VERSION -X main.BuildType=$NAME" -o owncast .
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -ldflags "-extldflags \"-static\" -s -w -X main.GitCommit=$GIT_COMMIT -X main.BuildVersion=$VERSION -X main.BuildPlatform=$NAME" -o owncast .
# Create the image by copying the result of the build into a new alpine image
FROM alpine

Loading…
Cancel
Save