-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (31 loc) · 1.11 KB
/
Copy pathDockerfile
File metadata and controls
36 lines (31 loc) · 1.11 KB
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
FROM nvcr.io/nvidia/pytorch:20.12-py3
WORKDIR /workspace
ENV PYTHONPATH "${PYTHONPATH}:/opt/conda/bin/python"
# Setup tools for the nethack learning environment
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
build-essential \
autoconf \
libtool \
pkg-config \
python3-dev \
python3-pip \
python3-numpy \
git \
flex \
bison \
libbz2-dev \
software-properties-common \
libgl1 && \
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | apt-key add - && \
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \
apt-get --allow-unauthenticated install -y cmake kitware-archive-keyring
# Install requirements
COPY requirements.txt .
# ToDo Is there a cleaner way to handle the PyYAML error? https://stackoverflow.com/questions/49911550/how-to-upgrade-disutils-package-pyyaml
RUN pip install -r requirements.txt --ignore-installed PyYAML
# Install our customized nle-language-wrapper
# RUN pip install -e nle-language-wrapper[dev]
# Install our project in developer mode
COPY . .
RUN pip install -e .