-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 764 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 764 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
FROM python:3.12-slim-bullseye AS devcontainer
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update &&\
apt-get -y install jq curl wget git
COPY ./requirements.txt /tmp/pip-tmp/
RUN pip install --no-cache-dir -r /tmp/pip-tmp/requirements.txt \
&& rm -rf /tmp/pip-tmp
WORKDIR /data
ARG MEMORYALPHA_DB_RELEASE=v0.5.0
RUN wget https://github.com/aniongithub/memoryalpha-vectordb/releases/download/${MEMORYALPHA_DB_RELEASE}/enmemoryalpha_db.tar.gz &&\
tar -xzf enmemoryalpha_db.tar.gz &&\
rm enmemoryalpha_db.tar.gz &&\
chmod -R 0777 /data
FROM devcontainer AS runtime
WORKDIR /workspace/memoryalpha-rag-api
COPY . /workspace/memoryalpha-rag-api
CMD ["uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000", "--log-level", "info"]