-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile_parser_api_dev
More file actions
35 lines (26 loc) · 967 Bytes
/
Dockerfile_parser_api_dev
File metadata and controls
35 lines (26 loc) · 967 Bytes
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
FROM python:3.9-slim
WORKDIR /app
# Install packages
RUN apt-get update && \
apt-get install -y bash \
git \
curl \
ca-certificates && \
apt-get install -y --no-install-recommends \
build-essential \
pkg-config \
python3-dev \
pandoc && \
rm -rf /var/lib/apt/lists/*
RUN pip install gradio==4.44.1 requests==2.32.3
# Install cpu version for lightweight Docker Image
RUN pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/cpu
ARG CACHEBUST=3
RUN pip install git+https://github.com/bibekyess/FastRAG.git
COPY ./fastrag /app/fastrag
COPY ./poetry.lock /app/poetry.lock
COPY ./pyproject.toml /app/pyproject.toml
COPY ./README.md /app/README.md
RUN pip install -e .
EXPOSE 7860
ENTRYPOINT ["uvicorn", "fastrag.api:app", "--host", "0.0.0.0", "--port", "8090", "--reload"]