Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM xtekky/g4f:latest
|
2 |
+
|
3 |
+
# Install socat if it's not included in the base image
|
4 |
+
RUN apt-get update && apt-get install -y socat
|
5 |
+
|
6 |
+
# Expose the internal port
|
7 |
+
EXPOSE 8080
|
8 |
+
|
9 |
+
# Forward traffic from port 7860 to 8080 using socat
|
10 |
+
CMD socat TCP-LISTEN:7860,fork TCP:localhost:8080
|