Skip to content

Commit

Permalink
[Maintenance] Build cleanup #73 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 authored Sep 5, 2023
1 parent 9cf94ac commit 17a955c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
15 changes: 13 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
FROM ${BASE_IMAGE} AS BASE
ARG USE_APT_PROXY

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

RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y libasound2
RUN apt-get install -y alsa-utils

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

RUN if [ "$USE_APT_PROXY" = "Y" ]; then \
rm /etc/apt/apt.conf.d/01-apt-proxy; \
fi

RUN rm -rf /var/lib/apt/lists/*

FROM scratch
COPY --from=BASE / /

LABEL maintainer="GioF71"
LABEL source="https://github.com/GioF71/librespot-docker"

ENV SPOTIFY_USERNAME ""
ENV SPOTIFY_PASSWORD ""

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ Just be careful to use the tag you have built.

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

0 comments on commit 17a955c

Please sign in to comment.