Use task in dockerfile

This commit is contained in:
Evan Fiordeliso 2023-04-15 00:02:44 -04:00
parent 0b6aa7cb56
commit 76cdf0ae3a
1 changed files with 3 additions and 2 deletions

View File

@ -4,8 +4,9 @@ WORKDIR /usr/src/ytdl-web
COPY . .
RUN go mod download \
&& go build -o ytdl-web .
RUN go install github.com/go-task/task/v3/cmd/task@latest \
&& task deps \
&& task build
FROM alpine:3.17