mfoud444 commited on
Commit
0698164
·
1 Parent(s): e14ec6b

first commit

Browse files
Files changed (2) hide show
  1. Dockerfile +21 -0
  2. d.sh +3 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the base image
2
+ FROM hlohaus789/g4f:latest
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Create necessary directories
8
+ RUN mkdir -p /app/har_and_cookies /app/generated_images
9
+
10
+ # Set volume mount points
11
+ VOLUME ["/app/har_and_cookies", "/app/generated_images"]
12
+
13
+ # Expose the specified ports
14
+ EXPOSE 7860 8080 1337 7900
15
+
16
+ # Increase shared memory size
17
+ # Note: The actual shm-size is set at runtime with --shm-size flag
18
+ RUN mkdir -p /dev/shm && chmod 777 /dev/shm
19
+
20
+ # Default command to run the container
21
+ CMD ["sh", "-c", "exec $CMD"]
d.sh ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ git add .
2
+ git commit -m "first commit"
3
+ git push -u origin main