From 6d4b9160481a755f4593cf71ca16c5c4d3141302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Ralph?= Date: Fri, 7 Apr 2023 20:44:19 -0300 Subject: [PATCH] add dockerfile --- Dockerfile | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6eaf8c2 --- /dev/null +++ b/Dockerfile @@ -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