Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
|
|
|
|
|
|
3 |
# Set the working directory in the container
|
4 |
WORKDIR /app
|
5 |
|
6 |
# Copy the app.py script to the working directory
|
7 |
COPY app.py .
|
8 |
|
9 |
-
# Install the required dependencies
|
10 |
RUN pip install pyglet arcade pygame
|
11 |
|
12 |
# Run the app.py script when the container starts
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
# Install OpenGL dependencies
|
4 |
+
RUN apt-get update && \
|
5 |
+
apt-get install -y libgl1-mesa-glx libgl1-mesa-dev
|
6 |
+
|
7 |
# Set the working directory in the container
|
8 |
WORKDIR /app
|
9 |
|
10 |
# Copy the app.py script to the working directory
|
11 |
COPY app.py .
|
12 |
|
13 |
+
# Install the required Python dependencies
|
14 |
RUN pip install pyglet arcade pygame
|
15 |
|
16 |
# Run the app.py script when the container starts
|