File size: 444 Bytes
164cfb7
 
 
 
 
 
 
 
 
 
54ea07d
164cfb7
 
 
 
 
 
 
 
54ea07d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM tensorflow/tensorflow:2.15.0-gpu

RUN apt-get update && apt-get install -y libgl1-mesa-glx libglib2.0-0 && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Copy code
COPY . .

# Install dependencies
RUN pip install "numpy<2" opencv-python fastapi uvicorn[standard] websockets

ENV MODEL_PATH="model"
ENV RESOLUTION="172"

# Mở port 8000
EXPOSE 8000

# Chạy Server FastAPI
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]