feat: switch to pre-built Docker image & update ports
All checks were successful
Docker CI/CD / Docker Build and Push to Docker Hub (push) Successful in 6m19s
All checks were successful
Docker CI/CD / Docker Build and Push to Docker Hub (push) Successful in 6m19s
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.
This commit is contained in:
parent
eb9312099a
commit
076eb2d243
2 changed files with 3 additions and 2 deletions
|
@ -8,5 +8,6 @@ COPY LICENSE /app
|
||||||
|
|
||||||
RUN apt update && apt install -y build-essential libpython3-dev
|
RUN apt update && apt install -y build-essential libpython3-dev
|
||||||
RUN pip install .[all]
|
RUN pip install .[all]
|
||||||
|
RUN pip install 'future==1.0.0'
|
||||||
|
|
||||||
CMD ["python", "-m", "gptbot"]
|
CMD ["python", "-m", "gptbot"]
|
|
@ -2,7 +2,7 @@ version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
gptbot:
|
gptbot:
|
||||||
build: .
|
image: kumitterer/matrix-gptbot
|
||||||
volumes:
|
volumes:
|
||||||
- ./config.ini:/app/config.ini
|
- ./config.ini:/app/config.ini
|
||||||
|
|
||||||
|
@ -11,4 +11,4 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./pantalaimon.conf:/etc/pantalaimon/pantalaimon.conf
|
- ./pantalaimon.conf:/etc/pantalaimon/pantalaimon.conf
|
||||||
ports:
|
ports:
|
||||||
- "8010:8010"
|
- "8009:8009"
|
Loading…
Reference in a new issue