24 lines
499 B
Docker
24 lines
499 B
Docker
FROM python:3.9-slim
|
|
|
|
# Disable Python output buffering
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
fonts-dejavu \
|
|
usbutils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy requirements and install Python dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Copy the application
|
|
COPY client.py .
|
|
COPY templates.py .
|
|
|
|
# Run the application
|
|
CMD ["python", "client.py"] |