-
Notifications
You must be signed in to change notification settings - Fork 68
/
Dockerfile
23 lines (17 loc) · 858 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM quay.io/pypa/manylinux2014_x86_64
ARG DEBIAN_FRONTEND=noninteractive
# get pip
RUN curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" && python3.10 get-pip.py
# clone repo by copying in
COPY . /DawDreamer
WORKDIR /DawDreamer/thirdparty/libfaust
RUN python3.10 download_libfaust.py
WORKDIR /DawDreamer
ENV PYTHONLIBPATH=/opt/python/cp310-cp310/lib
ENV PYTHONINCLUDEPATH=/opt/python/cp310-cp310/include/python3.10
RUN sh -v build_linux.sh
# Setup python virtual environment and requirements
WORKDIR /DawDreamer
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/DawDreamer/dawdreamer:/DawDreamer/thirdparty/libfaust/ubuntu-x86_64/Release/lib
RUN python3.10 -m venv test-env
#RUN /bin/bash -c "source test-env/bin/activate && pip install -r test-requirements.txt && python -m build --wheel && pip install dist/dawdreamer*.whl && cd tests && pytest -v ."