tranny / Dockerfile
Mbonea's picture
trying
fa1fb30
raw
history blame
515 Bytes
# Builder stage
FROM python:latest as builder
WORKDIR /srv
# Install dependencies and Python packages
RUN apt-get update && apt-get install -y git ffmpeg aria2 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
RUN useradd -m -u 1000 user
USER user
COPY --chown=user . /srv
# Command to run the application
CMD python -m App & celery -A App.Worker.celery worker -c 8 --loglevel=info
# Expose the server port
EXPOSE 7860