-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (34 loc) · 1.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM python:3.8-slim
RUN apt-get update \
&& apt-get install --no-install-recommends -y \
# for installing poetry
curl \
# for installing git deps
git \
# for building python deps
build-essential
# make poetry install to this location
ENV POETRY_HOME="/opt/poetry"
ENV PATH="$POETRY_HOME/bin:$PATH"
# install poetry
RUN curl -sSL https://install.python-poetry.org | python -
WORKDIR /MISTRAL-GPT
COPY pyproject.toml /MISTRAL-GPT/pyproject.toml
COPY poetry.lock /MISTRAL-GPT/poetry.lock
RUN poetry install --no-root --no-dev
COPY data /MISTRAL-GPT/data
COPY mistral_pdf /MISTRAL-GPT/mistral_pdf
COPY model /MISTRAL-GPT/model
COPY static /MISTRAL-GPT/static
COPY templates /MISTRAL-GPT/templates
COPY tests /MISTRAL-GPT/tests
COPY app.py /MISTRAL-GPT/app.py
COPY load_model.py /MISTRAL-GPT/load_model.py
COPY README.md /MISTRAL-GPT/README.md
RUN poetry install --no-dev
ENTRYPOINT [ "poetry", "run", "python" ]
CMD [ "mistral_pdf/embeddings.py" ]
ENTRYPOINT [ "poetry", "run", "python" ]
CMD [ "load_model.py" ]
ENTRYPOINT [ "poetry", "run", "python" ]
CMD [ "app.py" ]