-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nick
committed
Aug 28, 2024
1 parent
505d42f
commit ad98f3c
Showing
1 changed file
with
12 additions
and
13 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,39 +1,38 @@ | ||
FROM python:3.8.5 | ||
|
||
ENV TINI_VERSION="v0.19.0" | ||
WORKDIR /gai-backend | ||
|
||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini | ||
RUN chmod +x /tini | ||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini ./tini | ||
RUN chmod +x ./tini | ||
|
||
RUN pip install -U \ | ||
pip \ | ||
setuptools \ | ||
wheel | ||
|
||
WORKDIR /gai-backend | ||
|
||
COPY requirements.txt ./ | ||
COPY run.sh / | ||
RUN chmod +x /run.sh | ||
COPY run.sh ./ | ||
RUN chmod +x ./run.sh | ||
COPY *.py ./ | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
COPY . . | ||
|
||
RUN useradd -m -r gai && chown gai /gai-backend | ||
#COPY . . | ||
|
||
RUN useradd -m -r gai && chown -R gai /gai-backend | ||
USER gai | ||
|
||
ENV ORCHID_GENAI_ADDR=127.0.0.1 | ||
ENV ORCHID_GENAI_ADDR=0.0.0.0 | ||
ENV ORCHID_GENAI_PORT=8000 | ||
ENV ORCHID_GENAI_LLM_MODEL="open-mixtral-8x22b" | ||
ENV ORCHID_GENAI_RECIPIENT_KEY="" | ||
ENV ORCHID_GENAI_LLM_AUTH_KEY="" | ||
#ENV ORCHID_GENAI_RECIPIENT_KEY="" | ||
#ENV ORCHID_GENAI_LLM_AUTH_KEY="" | ||
ENV ORCHID_GENAI_LLM_URL="https://api.mistral.ai/v1/chat/completions" | ||
ENV ORCHID_GENAI_LLM_PARAMS="{}" | ||
#ENV ORCHID_GENAI_LLM_PARAMS="{}" | ||
|
||
ENTRYPOINT ["/tini", "--", "/run.sh"] | ||
ENTRYPOINT ["./tini", "--", "./run.sh"] | ||
EXPOSE 8000 8000 | ||
|
||
HEALTHCHECK CMD bash -c "exec 6<> /dev/tcp/localhost/8000" |