Spaces:
Running
Running
File size: 358 Bytes
198094e f9ad477 7a8425c f9ad477 56f85e4 ed34378 6e74a89 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
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"
|