try to get docker working

This commit is contained in:
2025-06-03 08:29:18 +02:00
parent 07e224ccbf
commit 6f8216cd37
2 changed files with 24 additions and 9 deletions

16
.dockerignore Normal file
View File

@@ -0,0 +1,16 @@
# Exclude everything
*
# Include specific files and directories
!start.sh
!requirements.txt
!app.py
!celery_worker.py
!models.py
!extensions.py
!utils/
!routes/
!templates/
!static/
!migrations/
!uploads/

View File

@@ -15,17 +15,16 @@ RUN useradd -m -u 1000 celery
# Set working directory
WORKDIR /app
# Copy start.sh first and set permissions
COPY start.sh .
RUN chmod +x start.sh
# Copy the entire application
COPY . /app/
# Copy requirements and install dependencies
COPY requirements.txt .
# Set up start.sh
RUN chmod +x /app/start.sh && \
chown celery:celery /app/start.sh
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Create necessary directories and set permissions
RUN mkdir -p /data/rooms && \
chown -R celery:celery /data && \
@@ -36,4 +35,4 @@ RUN mkdir -p /data/rooms && \
USER celery
# Set entrypoint
ENTRYPOINT ["./start.sh"]
ENTRYPOINT ["/app/start.sh"]