test / Dockerfile
rishikumar20202023's picture
Update Dockerfile
198094e verified
raw
history blame
274 Bytes
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 8080
# Forward traffic from port 7860 to 8080 using socat
CMD socat TCP-LISTEN:7860,fork TCP:localhost:8080