From 06bd0cd90aa4b6bf18367058793271cd8cfa6793 Mon Sep 17 00:00:00 2001 From: "k.eaven" Date: Mon, 11 Aug 2025 03:44:13 -0700 Subject: [PATCH] Update image build process --- dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dockerfile b/dockerfile index 6170976..dfc7f8d 100644 --- a/dockerfile +++ b/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 \