File size: 381 Bytes
be8ba6b
 
 
 
4b7ca80
 
 
 
 
 
 
 
 
be8ba6b
 
 
 
 
 
b074c3b
 
eb4231e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM pytorch/pytorch:latest

WORKDIR /app

# Install system dependencies required by OpenCV
RUN apt-get update && apt-get install -y \

    libglib2.0-0 \
    libsm6 \
    libxrender1 \
    libxext6 \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

COPY . .

RUN pip install -r requirements.txt

ENV PORT=7860

EXPOSE 7860

CMD [ "python", "app.py" ]