Kentod / Dockerfile
HerzaJ's picture
Create Dockerfile
e9a9497 verified
raw
history blame contribute delete
424 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN apt-get update && \
apt-get install -y git nodejs npm curl && \
rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 https://github.com/presenton/presenton.git .
RUN pip install --no-cache-dir -r requirements.txt
RUN cd frontend && npm install && npm run build
EXPOSE 7860
ENV PORT=7860
ENV HOST=0.0.0.0
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]