mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 03:05:35 +00:00
remove old Dockerfile
This commit is contained in:
parent
5b332bebb5
commit
8ff09925a2
@ -13,7 +13,3 @@ VOLUME /music
|
||||
VOLUME /config
|
||||
|
||||
ENTRYPOINT ["/swingmusic", "--host", "0.0.0.0", "--config", "/config"]
|
||||
|
||||
LABEL org.opencontainers.image.source=https://github.com/cwilvx/swingmusic
|
||||
LABEL org.opencontainers.image.description=" Swing Music is a beautiful, self-hosted music player for your local audio files. Like a cooler Spotify ... but bring your own music."
|
||||
LABEL org.opencontainers.image.licenses=MIT
|
@ -1,35 +0,0 @@
|
||||
FROM node:latest AS CLIENT
|
||||
|
||||
RUN git clone https://github.com/swing-opensource/swingmusic-client.git client
|
||||
|
||||
WORKDIR /client
|
||||
|
||||
RUN git checkout $(git describe --tags $(git rev-list --tags --max-count=1))
|
||||
|
||||
RUN yarn install
|
||||
|
||||
RUN yarn build
|
||||
|
||||
FROM python:latest
|
||||
|
||||
WORKDIR /app/swingmusic
|
||||
|
||||
COPY . .
|
||||
|
||||
COPY --from=CLIENT /client/dist/ client
|
||||
|
||||
EXPOSE 1970/tcp
|
||||
|
||||
VOLUME /music
|
||||
|
||||
VOLUME /config
|
||||
|
||||
RUN pip install poetry
|
||||
|
||||
RUN poetry config virtualenvs.create false
|
||||
|
||||
RUN poetry install
|
||||
|
||||
ENV LASTFM_API_KEY="45c6776a1029a280fabd6a2c8158023d"
|
||||
|
||||
ENTRYPOINT ["poetry", "run", "python", "manage.py", "--host", "0.0.0.0", "--config", "/config"]
|
@ -136,7 +136,7 @@ def get_first_4_images(
|
||||
|
||||
def get_recently_added_playlist(cutoff: int = 14):
|
||||
playlist = Playlist(
|
||||
id="recentlyplayed",
|
||||
id="recentlyadded",
|
||||
name="Recently Added",
|
||||
image=None,
|
||||
last_updated="Now",
|
||||
|
Loading…
x
Reference in New Issue
Block a user