open_env / Dockerfile
Ramachandra Dayal K
Fix Dockerfile python path error by using single-stage build
733c061
Raw
History Blame Contribute Delete
327 Bytes
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"]