logreg__ / Dockerfile
ganeshkonapalli's picture
Update Dockerfile
15f57f3 verified
raw
history blame contribute delete
476 Bytes
FROM python:3.9-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app/
RUN mkdir -p /app/uploads /app/saved_models /app/predictions && \
chmod -R 777 /app/uploads /app/saved_models /app/predictions
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
ENV PORT=7860
EXPOSE 7860
CMD ["python", "app.py"]