-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
52 lines (40 loc) · 1.6 KB
/
Dockerfile
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
47
48
49
50
51
52
FROM nvidia/cuda:12.0.1-cudnn8-runtime-ubuntu22.04
# Ensure no installs try to launch interactive screen
ARG DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1
# Update packages and install python3.9 and other dependencies
RUN apt-get update -y && \
apt-get install -y software-properties-common && \
add-apt-repository -y ppa:deadsnakes/ppa && \
apt-get install -y python3.9 python3.9-dev python3-pip python3.9-venv python3-dev python3-opencv swig ffmpeg git unzip wget libosmesa6-dev libgl1-mesa-glx libglfw3 patchelf && \
update-alternatives --install /usr/bin/python python /usr/bin/python3.9 10 && \
python -m venv og-marl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Setup virtual env and path
ENV VIRTUAL_ENV /og-marl
ENV PATH /og-marl/bin:$PATH
# Location of og-marl folder
ARG folder=/home/app/og-marl
# Set working directory
WORKDIR ${folder}
# Copy all code needed to install dependencies
COPY ./install_environments ./install_environments
COPY ./og_marl ./og_marl
COPY setup.py .
COPY ./run_exps.py .
RUN echo "Installing requirements..."
RUN pip install --quiet --upgrade pip setuptools wheel && \
pip install -e . && \
pip install flashbax==0.1.2
# ENV SC2PATH "~/StarCraftII"
# RUN ./install_environments/smacv1.sh
# RUN ./install_environments/smacv2.sh
# ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/root/.mujoco/mujoco210/bin:/usr/lib/nvidia
# ENV SUPPRESS_GR_PROMPT 1
# RUN ./install_environments/mamujoco.sh
# RUN ./install_environments/pettingzoo.sh
# RUN ./install_environments/flatland.sh
# Copy all code
# COPY ./examples ./examples
# COPY ./baselines ./baselines