[test] arm build
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM --platform=$BUILDPLATFORM golang:1.15-alpine AS builder
|
FROM --platform=${BUILDPLATFORM} golang:1.15-alpine AS builder
|
||||||
RUN apk add -U --no-cache \
|
RUN apk add -U --no-cache \
|
||||||
build-base \
|
build-base \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
@@ -11,10 +11,10 @@ COPY go.mod .
|
|||||||
COPY go.sum .
|
COPY go.sum .
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN ./_do_gen_assets
|
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} ./_do_gen_assets
|
||||||
RUN ./_do_build_server
|
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} ./_do_build_server
|
||||||
|
|
||||||
FROM --platform=$BUILDPLATFORM alpine:3.12.3
|
FROM --platform=${BUILDPLATFORM} alpine:3.12.3
|
||||||
RUN apk add -U --no-cache \
|
RUN apk add -U --no-cache \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
|
|||||||
Reference in New Issue
Block a user