-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (30 loc) · 941 Bytes
/
Copy pathDockerfile
File metadata and controls
43 lines (30 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
FROM golang:1.26 AS go-builder
WORKDIR /src
COPY go.mod .
COPY main.go .
COPY config/ ./config/
COPY handler/ ./handler/
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -trimpath -ldflags="-s -w" -o /audyn .
FROM python:3.12-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /streamrip
COPY streamrip/ .
RUN pip install --no-cache-dir .
WORKDIR /app
COPY --from=go-builder /audyn /usr/local/bin/audyn
COPY config/ ./config/
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN mkdir -p /downloads/incomplete /downloads/complete
ENV AUDYN_INCOMPLETE_PATH=/downloads/incomplete
ENV AUDYN_COMPLETE_PATH=/downloads/complete
ENV AUDYN_COMPLETE_PATH_MAPPING=/downloads/complete
ENV AUDYN_PORT=5000
# DEEZER_ARL
# ENV DEEZER_ARL=
EXPOSE 5000
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["audyn"]