1 2 3 4 5 6 7 8 9 10 11 12 13
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" ]