CoolFace
Apppublic

hydra953/invoice-processing-env

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1FROM python:3.11-slim2 3RUN useradd -m -u 1000 appuser4 5WORKDIR /app6 7COPY requirements.txt .8RUN pip install --no-cache-dir -r requirements.txt9 10COPY . .11 12RUN chown -R appuser:appuser /app13USER appuser14 15EXPOSE 786016 17ENV PORT=786018ENV HOST=0.0.0.019ENV PYTHONPATH=/app20 21HEALTHCHECK --interval=30s --timeout=10s --start-period=15s \22    CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')"23 24CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]25