# Using Debian 12 as the base image FROM debian:12 # Setting the working directory inside the container WORKDIR /videocompressor # Setting the timezone environment variable ENV TZ=America/New_York ENV NVIDIA_DRIVER_CAPABILITIES=all # Updating and upgrading system packages, and installing dependencies RUN apt update -y && \ apt full-upgrade -y && \ apt install -y python3 python3-pip python3-venv ffmpeg && \ apt clean && \ python3 -m venv venv # Copying application source code to the container COPY . . # Installing Python dependencies inside the virtual environment RUN . venv/bin/activate && \ pip3 install flask # Exposing the port the app runs on EXPOSE 5123 # Command to run the application using the virtual environment CMD ["/bin/bash", "-c", "source venv/bin/activate && python3 app.py"]