GOAT-Evolution / Dockerfile
rawknee-69's picture
Fix Docker install permissions by installing deps as root
f7ddcfc
Raw History Blame Contribute Delete
757 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 appuser
WORKDIR /app
COPY --chown=appuser pyproject.toml README.md ./
COPY --chown=appuser backend/ ./backend/
COPY --chown=appuser public/ ./public/
RUN pip install --no-cache-dir uv && uv pip install --system --no-cache-dir -e .
COPY --chown=appuser openenv.yaml ./
ENV PYTHONPATH="/app"
ENV PORT=7860
ENV PUBLIC_LOGS_DIR=/data/goat-logs
ENV PATH="/home/appuser/.local/bin:$PATH"
USER appuser
EXPOSE 7860
HEALTHCHECK --interval=30s --timeout=10s --start-period=25s --retries=3 CMD curl -f http://localhost:7860/health || exit 1
CMD ["uvicorn", "backend.server.app:app", "--host", "0.0.0.0", "--port", "7860"]