-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52ece69
commit a6abe78
Showing
1 changed file
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# Use the official Python image with your version | ||
FROM python:3.12.3 | ||
|
||
# Install system-level dependencies for PyAudio | ||
# Install system dependencies (libGL, libGLU, and others for OpenCV) | ||
RUN apt-get update && apt-get install -y \ | ||
libgl1-mesa-glx \ | ||
libglib2.0-0 \ | ||
libsm6 \ | ||
libxext6 \ | ||
libxrender1 \ | ||
portaudio19-dev \ | ||
libasound2-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the working directory | ||
# Set working directory | ||
WORKDIR /app | ||
|
||
# Copy project files | ||
# Copy project files into container | ||
COPY . . | ||
|
||
# Install Python dependencies | ||
RUN pip install --upgrade pip && pip install -r requirements.txt | ||
|
||
# Start the server | ||
# Start the application | ||
CMD ["python", "server.py"] |