mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-04 01:11:27 +03:00
fix(docker): pre-create runtime directories (#607)
- Added creation of runtime directories (`/container/user` and `/container/logs`) in the Dockerfile. - Ensures these directories are created with appropriate permissions during image build. - Prevents Docker from auto-creating these directories with root ownership at runtime, avoiding access issues.
This commit is contained in:
@@ -30,6 +30,9 @@ RUN mkdir /app \
|
||||
&& chown container:container /app \
|
||||
&& chmod -R 777 /app
|
||||
|
||||
RUN mkdir -p /home/container/user /home/container/logs \
|
||||
&& chown -R container:container /home/container
|
||||
|
||||
USER container
|
||||
ENV USER=container \
|
||||
HOME=/home/container \
|
||||
|
Reference in New Issue
Block a user