-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from SasCezar/dev
Fix and detached the dependency on the ui as git module
- Loading branch information
Showing
16 changed files
with
48 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "autofl-ui"] | ||
path = autofl-ui | ||
url = git@github.com:SasCezar/autofl-ui.git | ||
Submodule autofl-ui
deleted from
b697f2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
FROM python:3.10 as python-base | ||
RUN mkdir autofl | ||
WORKDIR /autofl | ||
COPY pyproject.toml /autofl | ||
RUN pip3 install poetry | ||
RUN poetry config virtualenvs.create false | ||
RUN poetry install -n --no-ansi --without dev | ||
# Start with the official Python 3.10 image as base | ||
FROM python:3.10 AS python-base | ||
|
||
# Set working directory and copy pyproject.toml | ||
WORKDIR /autofl | ||
COPY pyproject.toml . | ||
|
||
# Install poetry in a single layer and configure it | ||
RUN pip install --no-cache-dir poetry \ | ||
&& poetry config virtualenvs.create false \ | ||
&& poetry install --no-root --no-ansi --without dev | ||
|
||
# Copy the remaining application code | ||
COPY . . | ||
|
||
# Set environment variables | ||
ENV PYTHONPATH=/autofl/src | ||
ENV HYDRA_FULL_ERROR=1 | ||
|
||
HEALTHCHECK CMD curl --fail http://localhost:8000 | ||
# Define a health check command | ||
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \ | ||
CMD curl --fail http://localhost:8000 || exit 1 | ||
|
||
CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "api.main:app", "--bind", "0.0.0.0:8000", "--timeout", "100000"] | ||
# Set the default command to start the app | ||
CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "api.main:app", "--bind", "0.0.0.0:8000", "--timeout", "100000"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
mkdocs==1.5.3 | ||
mkdocstrings==0.24.0 | ||
mkdocs==1.6.1 | ||
mkdocstrings==0.26.1 | ||
mkdocs-gen-files==0.5.0 | ||
mkdocstrings-python==1.7.5 | ||
mkdocstrings-python==1.11.1 | ||
mkdocs-literate-nav==0.6.1 | ||
mkdocs-section-index==0.3.8 | ||
mkdocs-material==9.4.14 | ||
mkdocs-section-index==0.3.9 | ||
mkdocs-material==9.5.39 | ||
griffe==1.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .abstract import AbstractEmbeddingModel |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .taxonomy import TaxonomyBase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters