1
0
ffmpeg-webapi/Dockerfile

19 lines
381 B
Docker
Raw Normal View History

2018-11-21 10:57:30 +00:00
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