FROM ghcr.io/astral-sh/uv:python3.13-alpine # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Set the working directory WORKDIR /app # Install dependencies RUN apk add --no-cache gcc musl-dev libffi-dev curl # Copy the application code COPY . /app/ # Configure application RUN uv run --no-dev manage.py collectstatic --noinput # Expose the port the app runs on EXPOSE 8000 # Command to run the application CMD ["uv", "run", "--no-dev", "--group", "server", "python", "-m", "gunicorn", "app.asgi:application", "-k", "uvicorn_worker.UvicornWorker", "-b", "0.0.0.0:8000"]