mirror of
https://github.com/olegvodyanov/docbot.git
synced 2026-02-02 02:45:46 +03:00
changes
This commit is contained in:
parent
cb9750d33e
commit
f6b1ae792c
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user