Update image build process
Some checks failed
Docker Build and Push / build-and-push (push) Failing after 47s
Some checks failed
Docker Build and Push / build-and-push (push) Failing after 47s
This commit is contained in:
10
dockerfile
10
dockerfile
@@ -16,16 +16,16 @@ COPY requirements.txt .
|
||||
# Install Python dependencies
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY . .
|
||||
|
||||
# Create a non-root user
|
||||
RUN useradd -m bot
|
||||
RUN addgroup -S bot && adduser -S bot -G bot
|
||||
|
||||
# Copy the rest of the application
|
||||
COPY --chown=bot:bot . .
|
||||
|
||||
# Create directories for persistent storage and modify permissions
|
||||
RUN mkdir -p logs && \
|
||||
chown -R bot:bot logs && \
|
||||
chmod -R 755 logs \
|
||||
chmod -R 755 logs && \
|
||||
mkdir -p embed && \
|
||||
chown -R bot:bot embed && \
|
||||
chmod -R 755 embed \
|
||||
|
Reference in New Issue
Block a user