add fastapi endpoint + deps + update dockerfile to run service instead

This commit is contained in:
Viktor Barzin 2025-06-11 20:05:26 +00:00
parent 45af54e4e4
commit 4a65664f4a
No known key found for this signature in database
GPG key ID: 4056458DBDBF8863
4 changed files with 549 additions and 5 deletions

View file

@ -36,9 +36,8 @@ ENV PATH="/app/.venv/bin:$PATH"
# Copy the application code
COPY . .
# Make the CLI executable
RUN chmod +x /app/main.py
EXPOSE 8000
# Set the entry point (adjust to your CLI's entry point)
# ENTRYPOINT ["python", "/app/main.py"]
ENTRYPOINT ["/app/runall.sh"]
# ENTRYPOINT ["/app/runall.sh"]
ENTRYPOINT ["uvicorn", "api.app:app", "--host", "0.0.0.0", "--port", "8000"]