-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (33 loc) · 1.12 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
FROM ubuntu
MAINTAINER tnarik <tnarik@lecafeautomatique.co.uk>
ARG MALMO_VERSION=Malmo-0.17.0-Linux-Ubuntu-15.10-64bit
ENV MALMO_PATH /opt/malmo
ENV MALMO_XSD_PATH ${MALMO_PATH}/Schemas
ENV PYTHONPATH ${MALMO_PATH}/Python_Examples
ENV VNC_PASS vnc_pass
RUN apt-get update && \
apt-get install -y wget \
libboost-all-dev libpython2.7 \
openjdk-8-jdk ffmpeg libav-tools \
lua5.1 libxerces-c3.1 liblua5.1-0-dev \
python-tk python-imaging-tk \
unzip && \
update-ca-certificates -f && \
# Xvfb and X11 VNC
apt-get install -y xvfb x11vnc && \
# Malmö
wget -q -O /tmp/malmo.zip https://github.com/Microsoft/malmo/releases/download/0.17.0/${MALMO_VERSION}.zip && \
unzip -d /tmp/ /tmp/malmo.zip && \
mv /tmp/${MALMO_VERSION} ${MALMO_PATH} && \
cd ${MALMO_PATH}/Minecraft && \
./gradlew setupDecompWorkspace && \
./gradlew build && \
# clean up
apt-get clean && \
rm -rf /tmp/* /tmp/.[!.]* /tmp/..?* /var/lib/apt/lists/*
COPY files/malmo_client ${MALMO_PATH}/malmo_client
RUN chmod 777 ${MALMO_PATH}/malmo_client
EXPOSE 5900
EXPOSE 10000
WORKDIR /code
CMD [ "/opt/malmo/malmo_client" ]