ytdl-web/Dockerfile

22 lines
293 B
Docker
Raw Normal View History

2023-04-14 11:58:32 -04:00
FROM golang:1.20-alpine3.17 as builder
WORKDIR /usr/src/ytdl-web
ADD . .
RUN go mod download
RUN go build -o ytdl-web .
FROM alpine:3.17
WORKDIR /app
RUN apk add --no-cache yt-dlp ffmpeg
COPY --from=builder /usr/src/ytdl-web/ytdl-web ./ytdl-web
EXPOSE 8080
ENTRYPOINT [ "ytdl-web" ]