remove old Dockerfile

This commit is contained in:
mungai-njoroge 2023-12-11 18:55:38 +03:00
parent 5b332bebb5
commit 8ff09925a2
3 changed files with 2 additions and 41 deletions

View File

@ -13,7 +13,3 @@ VOLUME /music
VOLUME /config VOLUME /config
ENTRYPOINT ["/swingmusic", "--host", "0.0.0.0", "--config", "/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

View File

@ -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"]

View File

@ -136,7 +136,7 @@ def get_first_4_images(
def get_recently_added_playlist(cutoff: int = 14): def get_recently_added_playlist(cutoff: int = 14):
playlist = Playlist( playlist = Playlist(
id="recentlyplayed", id="recentlyadded",
name="Recently Added", name="Recently Added",
image=None, image=None,
last_updated="Now", last_updated="Now",