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 . . COPY . .
RUN go mod download \ RUN go install github.com/go-task/task/v3/cmd/task@latest \
&& go build -o ytdl-web . && task deps \
&& task build
FROM alpine:3.17 FROM alpine:3.17