1
0
ffmpeg-webapi/Dockerfile

19 lines
381 B
Docker

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<admin@yumc.pw>"
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