From 076eb2d243e5e6e185e64fb52677781aec54b29a Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 23 Apr 2024 16:45:16 +0200 Subject: [PATCH] feat: switch to pre-built Docker image & update ports Moved from building the GPT bot Docker container on the fly to using a pre-built image, enhancing the setup's efficiency and reducing build times for deployments. Adjusted the server's exposed port to resolve conflicts and standardize deployment configurations. Additionally, locked in the `future` package version to ensure compatibility with legacy Python code, mitigating potential future incompatibility issues. --- Dockerfile | 1 + docker-compose.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18f3a61..3afc845 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,5 +8,6 @@ COPY LICENSE /app RUN apt update && apt install -y build-essential libpython3-dev RUN pip install .[all] +RUN pip install 'future==1.0.0' CMD ["python", "-m", "gptbot"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index e095ab9..127cfe7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.8' services: gptbot: - build: . + image: kumitterer/matrix-gptbot volumes: - ./config.ini:/app/config.ini @@ -11,4 +11,4 @@ services: volumes: - ./pantalaimon.conf:/etc/pantalaimon/pantalaimon.conf ports: - - "8010:8010" \ No newline at end of file + - "8009:8009" \ No newline at end of file