FROM ubuntu:latest RUN apt update && apt install -y python3 python3-pip socat WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py . RUN chmod +x app.py CMD [ "socat", "TCP-LISTEN:9000,fork", "EXEC:./app.py" ]