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:
parent
df2587ee74
commit
ca07adbc93
2 changed files with 15 additions and 3 deletions
|
@ -1,7 +1,10 @@
|
||||||
FROM python:3.12-slim
|
FROM python:3.12-slim
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY src/ /app/src
|
||||||
|
COPY pyproject.toml /app
|
||||||
|
COPY README.md /app
|
||||||
|
COPY LICENSE /app
|
||||||
|
|
||||||
RUN pip install .[all]
|
RUN pip install .[all]
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,12 @@ version: '3.8'
|
||||||
services:
|
services:
|
||||||
gptbot:
|
gptbot:
|
||||||
build: .
|
build: .
|
||||||
|
volumes:
|
||||||
|
- ./settings.ini:/app/settings.ini
|
||||||
|
|
||||||
|
pantalaimon:
|
||||||
|
image: matrixdotorg/pantalaimon
|
||||||
|
volumes:
|
||||||
|
- ./pantalaimon.conf:/etc/pantalaimon/pantalaimon.conf
|
||||||
|
ports:
|
||||||
|
- "8010:8010"
|
Loading…
Reference in a new issue