Update container permissions
This commit is contained in:
1 parent
005d7de2a3
commit
931719e53a
1 file changed
+2
-3
+2
-3
@@ -23,9 +23,8 @@ COPY . .
|
||||
RUN useradd -m bot
|
||||
USER bot
|
||||
|
||||
# Create directories for persistent storage
|
||||
RUN mkdir -p /app/logs
|
||||
RUN chown -R bot:bot /app
|
||||
# Create directories for persistent storage and modify permissions
|
||||
RUN mkdir -p /app/logs && chown -R bot:bot /app && chmod -R 777 /app/logs
|
||||
|
||||
# Set environment variables for configuration
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
Reference in new issue
Block a user