prakashkumarsingh commited on
Commit
62128f7
·
verified ·
1 Parent(s): 8bd25f2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ xvfb \
6
+ python3-tk \
7
+ libglib2.0-0 \
8
+ libsm6 \
9
+ libxrender1 \
10
+ libxext6 \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Set up working directory
14
+ WORKDIR /app
15
+
16
+ # Install Python dependencies
17
+ COPY requirements.txt .
18
+ RUN pip install -r requirements.txt
19
+
20
+ # Copy app code
21
+ COPY app.py .
22
+
23
+ # Run with Xvfb to support pygame
24
+ CMD xvfb-run -a python app.py