From 00c737f14cee48051c2e8767c099575d038dbbb4 Mon Sep 17 00:00:00 2001 From: Evan Fiordeliso Date: Sat, 15 Apr 2023 19:54:42 -0400 Subject: [PATCH] Update Dockerfile for goreleaser --- Dockerfile | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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