-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
36 lines (25 loc) · 1.1 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
FROM python:3.9-slim
ARG GIT_TAG=main
ENV WEAVIATE_URL=http://localhost:8080
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN git clone --branch $GIT_TAG --depth 1 https://github.com/JaneliaSciComp/gpt-semantic-search.git .
RUN ls -la /app/pages
RUN find /app/pages -maxdepth 1 -type f \( -name '5*' -o -name '4*' \) -exec rm -f {} +
RUN ls -la /app/pages
RUN pip3 install -r requirements.txt
LABEL \
org.opencontainers.image.title="JaneliaGPT Semantic Search" \
org.opencontainers.image.description="Semantic search for Janelia resources" \
org.opencontainers.image.authors="[email protected]" \
org.opencontainers.image.licenses="BSD-3-Clause" \
org.opencontainers.image.version=${GIT_TAG} \
org.opencontainers.image.source="https://github.com/JaneliaSciComp/gpt-semantic-search"
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT streamlit run 1_🔍_Search.py --server.port=8501 --server.address=0.0.0.0 -- -w $WEAVIATE_URL