-
Notifications
You must be signed in to change notification settings - Fork 69
/
Dockerfile.paperspace
34 lines (27 loc) · 1.32 KB
/
Dockerfile.paperspace
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
# This is a Container we can use to run Experiments in Paperspace.
# Edit, build, and publish to DockerHub.
# `docker build . -f Dockerfile.paperspace -t bcollazo/paperspace-rl` to build.
# `docker run --rm -it bcollazo/paperspace-rl catanatron-play` to ensure it works.
# `docker push bcollazo/paperspace-rl` to publish.
# FROM paperspace/tensorflow:2.0.0-gpu-py3-jupyter-lab
FROM tensorflow/tensorflow:2.10.0rc1-gpu-jupyter
# Install Python3.8
RUN apt update && \
apt install --no-install-recommends -y build-essential software-properties-common && \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt install --no-install-recommends -y python3.8 python3-pip python3-setuptools python3-distutils && \
apt clean && rm -rf /var/lib/apt/lists/*
WORKDIR /app
# We copy just the dependencies first to leverage Docker cache
COPY dev-requirements.txt .
RUN python3.8 -m pip install --upgrade pip
RUN python3.8 -m pip install -r dev-requirements.txt
# For some reason we can't include the -e . dependency of the
# catanatron package in the dev-requirements.txt. So we install
# it separately, here:
COPY . .
RUN python3.8 -m pip install -e catanatron_core
RUN python3.8 -m pip install -e catanatron_gym
RUN python3.8 -m pip install -e catanatron_server
RUN python3.8 -m pip install -e catanatron_experimental
EXPOSE 8888