hotel-cancel-api / Dockerfile
RJuro's picture
Upload Dockerfile
d5a51fc verified
raw
history blame contribute delete
282 Bytes
FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 MODEL_PATH=/app/hotel_cancellation_model.pkl
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
CMD uvicorn main:app --host 0.0.0.0 --port ${PORT:-7860}