refactor(docker): restructure project for improved management

Redesigned the Docker setup to enhance project structure and configuration management. Changes include a more organized directory structure within the Docker container, separating source code, project metadata, and licenses explicitly to the `/app` directory for better clarity and management. Additionally, integrated `pantalaimon` as a dependency service in `docker-compose.yml`, enabling secure communication with Matrix services by automatically managing settings and configurations through mounted files. This setup simplifies the development environment setup and streamlines deployments.
This commit is contained in:
Kumi 2024-04-23 08:42:12 +02:00
parent df2587ee74
commit ca07adbc93
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 15 additions and 3 deletions

View file

@ -1,7 +1,10 @@
FROM python:3.12-slim
WORKDIR /usr/src/app
COPY . .
WORKDIR /app
COPY src/ /app/src
COPY pyproject.toml /app
COPY README.md /app
COPY LICENSE /app
RUN pip install .[all]

View file

@ -2,4 +2,13 @@ version: '3.8'
services:
gptbot:
build: .
build: .
volumes:
- ./settings.ini:/app/settings.ini
pantalaimon:
image: matrixdotorg/pantalaimon
volumes:
- ./pantalaimon.conf:/etc/pantalaimon/pantalaimon.conf
ports:
- "8010:8010"