-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (30 loc) · 736 Bytes
/
Dockerfile
File metadata and controls
46 lines (30 loc) · 736 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y \
timidity \
python3-pip \
python3-pil \
git \
curl \
ffmpeg \
vim
ARG BASE_PATH
ARG SCORE_PATH
# Check for mandatory build arguments
RUN \
: "${BASE_PATH:?mandatory build argument is missing}"
RUN \
: "${SCORE_PATH:?mandatory build argument is missing}"
RUN mkdir -p ${BASE_PATH}/ly2video
WORKDIR ${BASE_PATH}
RUN curl -o lilypond.sh https://lilypond.org/download/binaries/linux-64/lilypond-2.22.1-1.linux-64.sh
RUN ls -l
RUN chmod +x lilypond.sh
RUN sh lilypond.sh --batch
WORKDIR ${BASE_PATH}/ly2video
COPY . .
RUN pwd
RUN ls
RUN pip3 install -r requirements.txt
RUN pip3 install .
WORKDIR ${SCORE_PATH}
CMD ["/bin/bash"]