FROM golang:alpine AS build WORKDIR /go/src/github.com/yumc.pw/cloud/ffmpeg-webapi ADD main.go . RUN go build -o main FROM alpine:edge LABEL maintainer="MiaoWoo" WORKDIR /root RUN set -x && \ apk add --no-cache ca-certificates yasm ffmpeg && \ rm -rf /var/cache/apk/* COPY --from=build /go/src/github.com/yumc.pw/cloud/ffmpeg-webapi/main ./main CMD ./main