Skip to content

Commit

Permalink
Updated Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick committed Aug 28, 2024
1 parent 505d42f commit ad98f3c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions gai-backend/Dockerfile
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"

0 comments on commit ad98f3c

Please sign in to comment.