Skip to content

Commit

Permalink
[BUG] Fix python package installation #196
Browse files Browse the repository at this point in the history
  • Loading branch information
GioF71 committed Jul 2, 2023
1 parent e14dc78 commit d2ffb0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ RUN apt-get install -y upmpdcli
RUN apt-get install -y upmpdcli-*
RUN apt-get install -y python3
RUN apt-get install -y python3-pip
RUN apt-get install -y python3-venv
RUN apt-get install -y git
RUN python3 -m venv /root/venv
RUN PATH=/root/venv/bin:$PATH pip install pyradios
RUN PATH=/root/venv/bin:$PATH pip install subsonic-connector==0.1.17
RUN apt-get remove -y software-properties-common
RUN apt-get -y autoremove
RUN rm -rf /var/lib/apt/lists/*
Expand All @@ -48,8 +44,8 @@ RUN echo "--- END upmpdcli.conf ---"
FROM scratch
COPY --from=BASE / /

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

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

Change Date|Major Changes
---|---
2023-07-02|Back to installing python packages at container startup (see issue [#196](https://github.com/GioF71/upmpdcli-docker/issues/196))
2023-06-30|Add support for `lunar` (see issue [#193](https://github.com/GioF71/upmpdcli-docker/issues/193))
2023-06-30|Remove binary version from image tags (see issue [#190](https://github.com/GioF71/upmpdcli-docker/issues/190))
2023-06-30|Add entrypoints for inspecting version (see issue [#188](https://github.com/GioF71/upmpdcli-docker/issues/188)
Expand Down
5 changes: 4 additions & 1 deletion app/bin/run-upmpdcli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -441,4 +441,7 @@ echo "Ready to start."
CMD_LINE="/usr/bin/upmpdcli -c $CONFIG_FILE"

echo "USER MODE (now mandatory)"
su - $USER_NAME -c "PATH=/root/venv/bin:$PATH $CMD_LINE"
su - $USER_NAME -c "pip install pyradios"
su - $USER_NAME -c "pip install subsonic-connector==0.1.17"

su - $USER_NAME -c "$CMD_LINE"

0 comments on commit d2ffb0e

Please sign in to comment.