FROM hlohaus789/g4f:latest # Install socat if it's not included in the base image RUN apt-get update && apt-get install -y socat # Expose the internal port EXPOSE 7860 # Forward traffic from port 7860 to 8080 using socat # CMD socat TCP-LISTEN:7860,fork TCP:localhost:8080 # CMD ["bash"] CMD bash -c "bash & socat TCP-LISTEN:7860,fork TCP:localhost:8080"