NotificationChannel / Dockerfile
Ekimart078's picture
Add professional dashboard template with WebSocket integration and dark mode toggle functionality.
f0442cf
Raw
History Blame Contribute Delete
607 Bytes
FROM python:3.13.5-slim-bookworm
ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PATH="/home/appuser/.local/bin:$PATH" \
PORT=7860
RUN apt-get update -qq && \
apt-get install -y --no-install-recommends build-essential libssl-dev ca-certificates && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 appuser
WORKDIR /app
COPY . .
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
pip install --no-cache-dir -r requirements.txt
USER appuser
EXPOSE ${PORT}
ENTRYPOINT ["uvicorn"]
CMD ["main:app", "--host", "0.0.0.0", "--port", "7860"]