mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 19:25:34 +00:00
36 lines
620 B
Docker
36 lines
620 B
Docker
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"]
|