summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--docker-compose.yml6
-rw-r--r--docker/Dockerfile4
-rw-r--r--docker/background.png (renamed from g4f.png)bin155456 -> 155456 bytes
-rwxr-xr-xdocker/supervisor.conf2
4 files changed, 7 insertions, 5 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
index 8dfe1f35..326a3640 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -2,13 +2,13 @@ version: '3'
services:
gpt4free:
- image: ghcr.io/xtekky/gpt4free:latest
+ image: hlohaus789/g4f:latest
shm_size: 2gb
build:
context: .
dockerfile: docker/Dockerfile
- volumes:
- - .:/app
+# volumes:
+# - .:/app
ports:
- '8080:80'
- '1337:1337'
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 905efc4b..66f7fd3c 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -3,6 +3,8 @@ FROM selenium/node-chrome
ENV SE_SCREEN_WIDTH 1850
ENV G4F_LOGIN_URL http://localhost:7900/?autoconnect=1&resize=scale&password=secret
ENV PYTHONUNBUFFERED 1
+ARG G4F_VERSION
+ENV G4F_VERSION ${G4F_VERSION}
USER root
@@ -22,7 +24,7 @@ RUN rm -rf /var/lib/apt/lists/* /var/cache/apt/* \
COPY docker/supervisor.conf /etc/supervisor/conf.d/selenium.conf
# Change background image
-COPY g4f.png /usr/share/images/fluxbox/ubuntu-light.png
+COPY docker/background.png /usr/share/images/fluxbox/ubuntu-light.png
# Switch user
USER 1200
diff --git a/g4f.png b/docker/background.png
index 41bf9e6b..41bf9e6b 100644
--- a/g4f.png
+++ b/docker/background.png
Binary files differ
diff --git a/docker/supervisor.conf b/docker/supervisor.conf
index 6d82f6c9..e76f9a6c 100755
--- a/docker/supervisor.conf
+++ b/docker/supervisor.conf
@@ -49,7 +49,7 @@ stderr_logfile_backups=5
stdout_capture_maxbytes=50MB
stderr_capture_maxbytes=50MB
-[program:g4f-cli]
+[program:g4f-api]
priority=15
command=python -m g4f.cli api
directory=/app