mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
build podsync inside docker
This commit is contained in:
committed by
Maksym Pavlenko
parent
c1130f3f97
commit
4fa6da6a02
+6
-2
@@ -1,10 +1,14 @@
|
||||
FROM alpine:3.10
|
||||
FROM golang:1.17.5-alpine3.15 AS builder
|
||||
WORKDIR /app
|
||||
COPY . /app/
|
||||
RUN go build -o podsync ./cmd/podsync
|
||||
|
||||
FROM alpine:3.10
|
||||
WORKDIR /app/
|
||||
RUN wget -O /usr/bin/youtube-dl https://github.com/ytdl-org/youtube-dl/releases/latest/download/youtube-dl && \
|
||||
chmod +x /usr/bin/youtube-dl && \
|
||||
apk --no-cache add ca-certificates python ffmpeg tzdata
|
||||
COPY podsync /app/podsync
|
||||
COPY --from=builder /app/podsync /app/podsync
|
||||
|
||||
ENTRYPOINT ["/app/podsync"]
|
||||
CMD ["--no-banner"]
|
||||
|
||||
Reference in New Issue
Block a user