-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (32 loc) · 872 Bytes
/
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
# FROM nvidia/cuda:10.0-base-ubuntu18.04
FROM consol/ubuntu-xfce-vnc
ENV REFRESHED_AT 2019-12-10
# Switch to root user to install additional software.
USER 0
# Install some basic utilities.
RUN apt-get update && apt-get install -y \
curl \
ca-certificates \
sudo \
bzip2 \
libx11-6 \
tmux \
htop \
gcc \
xvfb \
python-opengl \
x11-xserver-utils \
&& rm -rf /var/lib/apt/lists/*
# Install Minecraft needed libraries.
RUN apt-get update
RUN apt-get install openjdk-8-jdk -y
RUN sudo apt-get install python3 python3-pip python3-tk -y
# Upgrade pip so it can find tensorflow==2.0.0rc0.
RUN pip3 install -U pip
# Create a working directory.
RUN mkdir /code
WORKDIR /code
COPY requirements.txt requirements.txt
RUN pip3 install --upgrade -r requirements.txt
COPY . .
CMD ["python3", "assignment.py", "REINFORCE_BASELINE"]