-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (23 loc) · 1.13 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
# Select ubuntu base image
FROM ubuntu:22.04
ARG DEBIAN_FRONTEND=noninteractive
# Install Java, Python, Git, OpenGL
RUN apt-get update && \
apt-get install -y openjdk-21-jdk python3-pip git libgl1-mesa-dev libegl1-mesa-dev libglew-dev xorg-dev libglu1-mesa-dev libglfw3-dev xvfb&& \
apt-get clean
# If you want to use PNG mode, you need to install libpng and zlib also
# RUN apt-get install -y libpng-dev zlib1g-dev
RUN python3 --version
RUN pip3 install --upgrade pip
RUN pip3 install cmake
RUN echo "Installing CraftGround"
RUN pip3 install git+https://github.com/yhs0602/CraftGround.git@dev
# Clone test repository
WORKDIR /workspace
RUN git clone https://github.com/yhs0602/minecraft-simulator-benchmark.git
# Set work directory and default execution
WORKDIR /workspace/minecraft-simulator-benchmark
RUN pip3 install wandb tensorboard moviepy git+https://github.com/DLR-RM/stable-baselines3.git
ENV DISPLAY=:99
RUN WANDB_MODE=offline PYTHONPATH=. xvfb-run -e /dev/stdout -a --server-args="-screen 0 1024x768x24" python3 experiments/craftground_exp.py --mode raw --image_width 64x64 --load simulation --max-steps 100
ENTRYPOINT ["bash"]