File size: 325 Bytes
c825c53
79587e7
18788eb
 
c825c53
d8616e4
c825c53
84a841a
c825c53
d8616e4
cc0fed1
c825c53
 
7744f07
204e078
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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"]