diff --git a/docker-compose.mac.yml b/docker-compose.mac.yml new file mode 100644 index 0000000..69a1e50 --- /dev/null +++ b/docker-compose.mac.yml @@ -0,0 +1,19 @@ +version: '3' + +services: + app: + build: + context: . + dockerfile: ./docker/Dockerfile.mac + tty: true + volumes: + - ./data/:/app/data + - ./notebooks/:/app/notebooks + - ./scripts/:/app/scripts + ports: + - "$JUPYTER_PORT:$JUPYTER_PORT" + - "$TENSORBOARD_PORT:$TENSORBOARD_PORT" + env_file: + - ./.env + entrypoint: jupyter lab --ip 0.0.0.0 --port=$JUPYTER_PORT --no-browser --allow-root + \ No newline at end of file diff --git a/docker/Dockerfile.mac b/docker/Dockerfile.mac new file mode 100644 index 0000000..aa9c299 --- /dev/null +++ b/docker/Dockerfile.mac @@ -0,0 +1,22 @@ +FROM ubuntu:20.04 + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt-get update +RUN apt-get install -y unzip graphviz curl musescore3 python3-pip pkg-config libhdf5-dev + +RUN pip install --upgrade pip + +WORKDIR /app + +COPY ./requirements.txt /app +RUN pip install -r /app/requirements.txt + +# Hack to get around tensorflow-io issue - https://github.com/tensorflow/io/issues/1755 +RUN pip install tensorflow-io +RUN pip uninstall -y tensorflow-io + +COPY /notebooks/. /app/notebooks +COPY /scripts/. /app/scripts + +ENV PYTHONPATH="${PYTHONPATH}:/app" \ No newline at end of file