Skip to content

Commit 17a955c

Browse files
authored
[Maintenance] Build cleanup #73 (#74)
1 parent 9cf94ac commit 17a955c

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

Dockerfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG BASE_IMAGE
2-
FROM ${BASE_IMAGE}
2+
FROM ${BASE_IMAGE} AS BASE
33
ARG USE_APT_PROXY
44

55
RUN mkdir -p /app/bin
@@ -17,13 +17,24 @@ RUN if [ "$USE_APT_PROXY" = "Y" ]; then \
1717
fi
1818

1919
RUN apt-get update
20-
RUN apt-get upgrade -y
2120
RUN apt-get install -y libasound2
2221
RUN apt-get install -y alsa-utils
2322

2423
RUN apt-get -y install curl
2524
RUN curl -sL https://dtcooper.github.io/raspotify/install.sh | sh
2625

26+
RUN if [ "$USE_APT_PROXY" = "Y" ]; then \
27+
rm /etc/apt/apt.conf.d/01-apt-proxy; \
28+
fi
29+
30+
RUN rm -rf /var/lib/apt/lists/*
31+
32+
FROM scratch
33+
COPY --from=BASE / /
34+
35+
LABEL maintainer="GioF71"
36+
LABEL source="https://github.com/GioF71/librespot-docker"
37+
2738
ENV SPOTIFY_USERNAME ""
2839
ENV SPOTIFY_PASSWORD ""
2940

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ Just be careful to use the tag you have built.
338338

339339
Change Date|Major Changes
340340
---|---
341+
2023-09-05|Clean Dockerfile (see [#73](https://github.com/GioF71/librespot-docker/issues/73))
341342
2023-06-23|Pass device name in quotes (see [#67](https://github.com/GioF71/librespot-docker/issues/67))
342343
2023-06-23|Daily builds update `latest` images
343344
2023-06-23|Add support for `bookworm`

0 commit comments

Comments
 (0)