diff --git a/Dockerfile b/Dockerfile index 14aa6df..94c50bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,25 +1,12 @@ -ARG GO_VERSION="1.20" ARG ALPINE_VERSION="3.17" -FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} as builder - -WORKDIR /usr/src/ytdl-web - -COPY . . - -RUN go install github.com/go-task/task/v3/cmd/task@latest \ - && apk add --no-cache git \ - && task deps \ - && task build - - FROM alpine:${ALPINE_VERSION} WORKDIR /app RUN apk add --no-cache yt-dlp ffmpeg -COPY --from=builder /usr/src/ytdl-web/out/ytdl-web ./ytdl-web +COPY ytdl-web ./ EXPOSE 8080