-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 732 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.10
ENV APP_DIR=/home/app/
RUN mkdir -p $APP_DIR
WORKDIR $APP_DIR
COPY requirements.txt requirements.txt
COPY manage.py manage.py
COPY db.sqlite3 db.sqlite3
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN apt-get update
RUN apt-get install -y ffmpeg lilypond fluidsynth
RUN pip install --upgrade pip
RUN pip install -r requirements.txt
RUN chmod 755 "./entrypoint.sh"
COPY ./config/ ./config/
COPY ./intervals/ ./intervals/
COPY ./inversions/ ./inversions/
COPY ./modules/ ./modules/
COPY ./musak/ ./musak/
COPY ./rhythm/ ./rhythm/
COPY ./shared/ ./shared/
COPY ./start/ ./start/
COPY ./static/ ./static/
COPY ./templates/ ./templates/
CMD ["sh", "-c", "python manage.py runserver 0.0.0.0:$MUSAK_PORT"]