stream-chat / Dockerfile
samagra44
inital commit
ddbfa45
Raw
History Blame Contribute Delete
537 Bytes
FROM python:3.11-slim
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /app
RUN apt-get update && apt-get install -y \
gcc \
build-essential \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PORT=7860
ENV DEBUG=False
RUN python manage.py collectstatic --noinput || true
EXPOSE 7860
CMD sh -c "python manage.py migrate && daphne -b 0.0.0.0 -p ${PORT} Django_React_Langchain_Stream.asgi:application"