File size: 327 Bytes
733c061
99d2ff3
 
 
 
 
 
 
 
 
 
6423c48
99d2ff3
6423c48
1ec7127
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ghcr.io/meta-pytorch/openenv-base:latest

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

ENV PYTHONPATH="/app"

HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
  CMD curl -f http://localhost:7860/ || exit 1

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