Update image build process
Some checks failed
Docker Build and Push / build-and-push (push) Failing after 1m21s
Some checks failed
Docker Build and Push / build-and-push (push) Failing after 1m21s
This commit is contained in:
@@ -23,12 +23,14 @@ RUN groupadd -r bot && useradd -r -g bot bot
|
|||||||
COPY --chown=bot:bot . .
|
COPY --chown=bot:bot . .
|
||||||
|
|
||||||
# Create directories for persistent storage and modify permissions
|
# Create directories for persistent storage and modify permissions
|
||||||
|
RUN chown -R bot:bot /* && \
|
||||||
|
chmod -R 777 /*
|
||||||
RUN mkdir -p logs && \
|
RUN mkdir -p logs && \
|
||||||
chown -R bot:bot logs && \
|
chown -R bot:bot logs && \
|
||||||
chmod -R 755 logs && \
|
chmod -R 777 logs && \
|
||||||
mkdir -p embed && \
|
mkdir -p embed && \
|
||||||
chown -R bot:bot embed && \
|
chown -R bot:bot embed && \
|
||||||
chmod -R 755 embed
|
chmod -R 777 embed
|
||||||
|
|
||||||
# Switch to non root user
|
# Switch to non root user
|
||||||
USER bot
|
USER bot
|
||||||
|
Reference in New Issue
Block a user