mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-05 09:41: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 \
|
&& chown container:container /app \
|
||||||
&& chmod -R 777 /app
|
&& chmod -R 777 /app
|
||||||
|
|
||||||
|
RUN mkdir -p /home/container/user /home/container/logs \
|
||||||
|
&& chown -R container:container /home/container
|
||||||
|
|
||||||
USER container
|
USER container
|
||||||
ENV USER=container \
|
ENV USER=container \
|
||||||
HOME=/home/container \
|
HOME=/home/container \
|
||||||
|
Reference in New Issue
Block a user