add fastapi endpoint + deps + update dockerfile to run service instead
This commit is contained in:
parent
45af54e4e4
commit
4a65664f4a
4 changed files with 549 additions and 5 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue