test / Dockerfile
rishikumar20202023's picture
Update Dockerfile
7a8425c verified
raw
history blame contribute delete
358 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 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"