forked from DennisSoemers/ml-agents
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 643 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 643 Bytes
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
# Base image
FROM python:3.10
# Install system dependencies
RUN apt-get update && apt-get install -y \
xvfb \
wget \
unzip \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender1 \
git \
sudo
# Set environment variables
ENV DISPLAY=:99
# Copy project files to the Docker container
COPY . /ml-agents
WORKDIR /ml-agents
# Install Python dependencies
RUN pip install --upgrade pip
RUN pip install -e ./ml-agents
RUN pip install -e ./ml-agents-envs
RUN pip install -r requirements.txt
# Expose the port for TensorBoard
EXPOSE 6006
# Entry point for the container
ENTRYPOINT ["xvfb-run", "python", "trainer.py"]