-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile-medlocalgpt
35 lines (30 loc) · 1.32 KB
/
Dockerfile-medlocalgpt
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
# FROM python:3.11-slim
FROM python:3.10-slim
# FROM python:3.9-slim
LABEL maintainer "Kyrylo Malakhov <malakhovks@nas.gov.ua>"
LABEL description "medlocalgpt - Ask your (medical) dataset privately using LLMs and Embeddings. No data leaves your infrastructure/platform and 100% private. Optionally you can use OpenAI GPT models or other LLM SaaS solutions."
COPY . /medlocalgpt
WORKDIR /medlocalgpt
# Expose the port uWSGI will listen on
EXPOSE 5000
RUN apt-get -y clean \
&& apt-get -y update \
&& apt-get -y install python3-dev \
&& apt-get -y install build-essential \
&& apt-get -y install unzip \
&& apt-get -y install curl \
&& apt-get -y install wget \
&& curl https://getmic.ro | bash \
# ------------------------------------------------------------------
&& pip install -r ./deploy/requirements.txt --src /usr/local/src \
# && wget -O ./ebsco-rehabilitation-dataset.zip https://cdn.e-rehab.pp.ua/u/ebsco-rehabilitation-dataset.zip \
# && unzip ./ebsco-rehabilitation-dataset.zip -d ./SOURCE_DOCUMENTS \
# && rm -r ./ebsco-rehabilitation-dataset.zip \
# empty directory named “.cache”
&& rm -rf /root/.cache/* \
&& apt-get -y clean \
&& apt-get -y autoremove
# && chmod 777 /var/run/docker.sock
# && chmod 777 /root/.cache
RUN chmod +x ./start.sh
CMD ["./start.sh"]