Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -1,5 +1,10 @@
|
|
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
|
|
|
|
3 |
# Install OpenGL dependencies and Xvfb
|
4 |
RUN apt-get update && \
|
5 |
apt-get install -y libgl1-mesa-glx libgl1-mesa-dev xvfb
|
@@ -17,4 +22,4 @@ RUN pip install pyglet arcade pygame
|
|
17 |
ENV DISPLAY=:99
|
18 |
|
19 |
# Run Xvfb and the app.py script when the container starts
|
20 |
-
CMD Xvfb :99 & python app.py
|
|
|
1 |
+
# Use an official Python runtime as a parent image
|
2 |
FROM python:3.9
|
3 |
|
4 |
+
# Install Java
|
5 |
+
RUN apt-get update && \
|
6 |
+
apt-get install -y default-jdk
|
7 |
+
|
8 |
# Install OpenGL dependencies and Xvfb
|
9 |
RUN apt-get update && \
|
10 |
apt-get install -y libgl1-mesa-glx libgl1-mesa-dev xvfb
|
|
|
22 |
ENV DISPLAY=:99
|
23 |
|
24 |
# Run Xvfb and the app.py script when the container starts
|
25 |
+
CMD Xvfb :99 & python app.py
|