mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-07-29 07:03:47 +00:00
steal some of @tcsenpai 's changes from the PR
+ ditch the LAST FM API KEY thing + expose the Musixmatch urls + use the kerve last fm api to download similar artist data + use google.it instead of the Google public dns to check internet connectivity (to make it work in all environments) + return og Dockerfile to fix ARM support
This commit is contained in:
+24
-6
@@ -1,12 +1,22 @@
|
||||
FROM ubuntu:latest
|
||||
FROM node:latest AS CLIENT
|
||||
|
||||
WORKDIR /
|
||||
RUN git clone --depth 1 https://github.com/swing-opensource/swingmusic-client.git client
|
||||
|
||||
COPY ./dist/swingmusic /swingmusic
|
||||
WORKDIR /client
|
||||
|
||||
RUN chmod +x /swingmusic
|
||||
# RUN git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
|
||||
|
||||
RUN apt update && apt install -y tzdata
|
||||
RUN yarn install
|
||||
|
||||
RUN yarn build
|
||||
|
||||
FROM python:latest
|
||||
|
||||
WORKDIR /app/swingmusic
|
||||
|
||||
COPY . .
|
||||
|
||||
COPY --from=CLIENT /client/dist/ client
|
||||
|
||||
EXPOSE 1970/tcp
|
||||
|
||||
@@ -14,4 +24,12 @@ VOLUME /music
|
||||
|
||||
VOLUME /config
|
||||
|
||||
ENTRYPOINT ["/swingmusic", "--host", "0.0.0.0", "--config", "/config"]
|
||||
RUN pip install poetry
|
||||
|
||||
RUN poetry config virtualenvs.create false
|
||||
|
||||
RUN poetry install
|
||||
|
||||
RUN apt-get update && apt-get install -y ffmpeg libavcodec-extra
|
||||
|
||||
ENTRYPOINT ["poetry", "run", "python", "manage.py", "--host", "0.0.0.0", "--config", "/config"]
|
||||
Reference in New Issue
Block a user