Update image build process
This commit is contained in:
1 parent
e02144e490
commit
a28e2d49fd
1 file changed
+4
-2
+4
-2
@@ -23,12 +23,14 @@ RUN groupadd -r bot && useradd -r -g bot bot
|
||||
COPY --chown=bot:bot . .
|
||||
|
||||
# Create directories for persistent storage and modify permissions
|
||||
RUN chown -R bot:bot /* && \
|
||||
chmod -R 777 /*
|
||||
RUN mkdir -p logs && \
|
||||
chown -R bot:bot logs && \
|
||||
chmod -R 755 logs && \
|
||||
chmod -R 777 logs && \
|
||||
mkdir -p embed && \
|
||||
chown -R bot:bot embed && \
|
||||
chmod -R 755 embed
|
||||
chmod -R 777 embed
|
||||
|
||||
# Switch to non root user
|
||||
USER bot
|
||||
|
||||
Reference in new issue
Block a user