This commit is contained in:
Oleg Oleg 2025-12-22 23:31:53 +04:00
parent cb9750d33e
commit f6b1ae792c
2 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ services:
volumes:
- db_data:/var/lib/postgresql/data
- ./db/init:/docker-entrypoint-initdb.d:ro
- ./dumps:/db/dumps:rw
networks:
- docbot-network
ports:

View File

@ -31,7 +31,7 @@ COPY src/ ./src/
RUN mkdir -p /app/data/actors
# Create non-root user
RUN groupadd -r botuser && useradd -r -g botuser botuser
RUN groupadd -r botuser --gid 1002 && useradd -r -g botuser --uid 1001 botuser
RUN chown -R botuser:botuser /app
USER botuser