Skip to content

Commit

Permalink
use tags and python3 in dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: jbpratt <jbpratt78@gmail.com>
  • Loading branch information
jbpratt committed Dec 15, 2022
1 parent ef21b42 commit 3fdd77a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
FROM golang as builder
FROM docker.io/library/golang:1.19-buster as builder
ENV GO111MODULE=on
WORKDIR /code
ADD go.mod go.sum /code/
RUN go mod download
ADD . .
RUN go build -o /radio .

FROM ubuntu:latest
FROM docker.io/library/ubuntu:latest
WORKDIR /
RUN apt update && apt install -y ffmpeg wget python
RUN apt update && apt install -y ffmpeg wget python3
RUN wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
RUN chmod a+rx /usr/local/bin/youtube-dl
COPY --from=builder /radio /usr/bin/radio
Expand Down

0 comments on commit 3fdd77a

Please sign in to comment.