Skip to content

Commit

Permalink
build: use jrottenberg/ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
andyrak committed Apr 4, 2024
1 parent 4ccb99d commit e1b19d2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM denismakogon/ffmpeg-alpine:4.0-buildstage as build-stage
FROM golang:1.22-alpine as app-build
FROM jrottenberg/ffmpeg:4.4-alpine as build-ffmpeg
FROM golang:1.22-alpine as build-app

WORKDIR /app
COPY go.mod .
Expand All @@ -13,13 +13,10 @@ RUN go build -o /bin/app cmd/*.go

FROM alpine:3.15.0 as app

# Copy ffmpeg runtime https://github.com/denismakogon/ffmpeg-alpine#custom-runtime
COPY --from=build-stage /tmp/fakeroot/bin /usr/local/bin
COPY --from=build-stage /tmp/fakeroot/share /usr/local/share
COPY --from=build-stage /tmp/fakeroot/include /usr/local/include
COPY --from=build-stage /tmp/fakeroot/lib /usr/local/lib
# Copy ffmpeg runtime https://github.com/jrottenberg/ffmpeg
COPY --from=build-ffmpeg /usr/local /usr/local

COPY --from=app-build /bin/app /bin/app
COPY --from=build-app /bin/app /bin/app
WORKDIR /app

COPY templates/ ./templates/
Expand Down

0 comments on commit e1b19d2

Please sign in to comment.