From e6ba4f3d8a3d032ae5fc228f43a70a5079f0f131 Mon Sep 17 00:00:00 2001 From: Kobe Date: Tue, 3 Jun 2025 08:21:53 +0200 Subject: [PATCH] Update Dockerfile --- Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0049923..d884047 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,22 +15,25 @@ RUN useradd -m -u 1000 celery # Set working directory WORKDIR /app -# Copy requirements first to leverage Docker cache +# Copy start.sh first and set permissions +COPY start.sh . +RUN chmod +x start.sh + +# Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt -# Copy application code +# Copy the rest of the application COPY . . # Create necessary directories and set permissions RUN mkdir -p /data/rooms && \ chown -R celery:celery /data && \ chmod -R 755 /data && \ - chown -R celery:celery /app && \ - chmod +x /app/start.sh + chown -R celery:celery /app # Switch to non-root user USER celery # Set entrypoint -ENTRYPOINT ["/app/start.sh"] \ No newline at end of file +ENTRYPOINT ["./start.sh"] \ No newline at end of file