Spaces:
Runtime error

anput-api / Dockerfile
alberdjuniawan's picture
fix: add ffmpeg
a5b2d26
Raw History Blame Contribute Delete
359 Bytes
# builder
FROM golang:1.25-alpine AS builder
RUN apk add --no-cache git
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o main .
# runner
FROM alpine:latest
WORKDIR /root/
RUN apk add --no-cache ca-certificates ffmpeg
COPY --from=builder /app/main .
COPY --from=builder /app/public ./public
EXPOSE 8080
CMD ["./main"]