multi / Dockerfile
rishab1090's picture
Update Dockerfile
c825c53 verified
raw
history blame contribute delete
325 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy your code and model
COPY . .
# Set full permissions for all files
RUN chmod -R 755 /app && chmod 644 /app/*.keras
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]