mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 03:05:35 +00:00
add dockerfile
This commit is contained in:
parent
d914314eeb
commit
6d4b916048
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@ -0,0 +1,31 @@
|
||||
FROM node:latest AS CLIENT
|
||||
|
||||
RUN git clone https://github.com/geoffrey45/swing-client.git client
|
||||
|
||||
WORKDIR /client
|
||||
|
||||
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
|
||||
|
||||
CMD poetry run python manage.py --host 0.0.0.0
|
Loading…
x
Reference in New Issue
Block a user