This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
70 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,40 @@ | ||
ARG BASE_IMAGE | ||
FROM ${BASE_IMAGE:-debian:stable-slim} | ||
FROM ${BASE_IMAGE:-debian:stable-slim} AS BASE | ||
|
||
LABEL maintainer="GioF71" | ||
LABEL source="https://github.com/GioF71/spotconnect-upnp-docker" | ||
|
||
ENV PUID "" | ||
ENV PGID "" | ||
ENV PREFER_STATIC "" | ||
RUN mkdir /app/bin -p | ||
COPY app/bin/install-pkg.sh /app/bin/ | ||
RUN chmod u+x /app/bin/install-pkg.sh | ||
RUN /app/bin/install-pkg.sh | ||
RUN rm /app/bin/install-pkg.sh | ||
|
||
VOLUME /config | ||
COPY app/bin/download.sh /app/bin/ | ||
RUN chmod u+x /app/bin/download.sh | ||
RUN /app/bin/download.sh | ||
RUN rm /app/bin/download.sh | ||
|
||
RUN mkdir /app/bin -p | ||
COPY app/bin/install.sh /app/bin/ | ||
RUN chmod u+x /app/bin/install.sh | ||
WORKDIR /app/bin/ | ||
RUN /app/bin/install.sh | ||
RUN rm /app/bin/install.sh | ||
|
||
COPY app/bin/cleanup.sh /app/bin/ | ||
RUN chmod u+x /app/bin/cleanup.sh | ||
RUN /app/bin/cleanup.sh | ||
RUN rm /app/bin/cleanup.sh | ||
|
||
COPY app/bin/run.sh /app/bin | ||
RUN chmod 755 /app/bin/run.sh | ||
|
||
WORKDIR /app/bin | ||
ENTRYPOINT ["/app/bin/run.sh"] | ||
FROM scratch | ||
COPY --from=BASE / / | ||
|
||
LABEL maintainer="GioF71" | ||
LABEL source="https://github.com/GioF71/spotconnect-upnp-docker" | ||
|
||
ENV PUID "" | ||
ENV PGID "" | ||
ENV PREFER_STATIC "" | ||
|
||
VOLUME /config | ||
|
||
ENTRYPOINT ["/app/bin/run.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
rm -Rf /app/release/ | ||
|
||
apt-get remove -y wget unzip | ||
apt-get autoremove -y | ||
|
||
rm -rf /var/lib/apt/lists/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
SPOT_CONNECT_VERSION="0.2.7" | ||
|
||
mkdir -p /app/release | ||
cd /app/release | ||
wget "https://github.com/philippe44/SpotConnect/releases/download/${SPOT_CONNECT_VERSION}/SpotConnect-${SPOT_CONNECT_VERSION}.zip" | ||
unzip SpotConnect*zip | ||
rm SpotConnect*zip | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
apt-get update | ||
apt-get install -y wget unzip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters