Files
ffmpegd/Dockerfile
Alf bd6581dd57 feat: add cors support for localhost and alfg.github.io.
docker: add dockerfile, docker-compose example and update goreleaser with
docker support.
2021-03-14 21:57:57 -07:00

23 lines
434 B
Docker

###############################
# Build the ffmpegd-build image.
FROM golang:1.16-alpine as build
WORKDIR /go/src/ffmpegd
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
##########################
# Build the release image.
FROM alfg/ffmpeg:latest
LABEL MAINTAINER Alfred Gutierrez <alf.g.jr@gmail.com>
WORKDIR /home
ENV PATH=/opt/bin:$PATH
COPY --from=build /go/bin/ffmpegd /opt/bin/ffmpegd
EXPOSE 8080
CMD ["ffmpegd"]