Skip to content

Commit

Permalink
Add ffmpeg
Browse files Browse the repository at this point in the history
  • Loading branch information
bifidokk committed Apr 23, 2024
1 parent c5c74c2 commit 1f2abf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY . ./
RUN go build ./cmd/main.go

FROM alpine:latest
RUN apk add --no-cache ca-certificates libc6-compat
RUN apk add --no-cache ca-certificates libc6-compat ffmpeg

WORKDIR /app
COPY --from=builder /app .
Expand Down
14 changes: 10 additions & 4 deletions .docker/app/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
FROM golang:1.22
FROM golang:1.22 as builder

WORKDIR /app

COPY . .
RUN go mod download && go mod verify
COPY go.mod go.sum ./
RUN go mod download
COPY . ./

RUN go build ./cmd/main.go

FROM alpine:latest
RUN apk add --no-cache ca-certificates libc6-compat ffmpeg

WORKDIR /app
COPY --from=builder /app .

CMD ["./main"]

0 comments on commit 1f2abf6

Please sign in to comment.