FROM python:3.12-alpine WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy source code COPY . . # Expose the port EXPOSE 5001 # Run the API CMD ["python", "openvpn_api_v3.py"]