nullHawk commited on
Commit
57d5cb6
·
verified ·
1 Parent(s): f076ab5

add: dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +26 -0
  2. README.md +13 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.13.5-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ git \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ COPY requirements.txt ./
12
+ COPY src/ ./src/
13
+
14
+ RUN pip3 install -r requirements.txt
15
+
16
+ RUN python -c "from huggingface_hub import hf_hub_download; \
17
+ hf_hub_download(repo_id='nullHawk/word2vec_arxive', \
18
+ filename='arxiv.db', \
19
+ local_dir='.', \
20
+ local_dir_use_symlinks=False)"
21
+
22
+ EXPOSE 8501
23
+
24
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
25
+
26
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
README.md ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Arxive Semantic Search
3
+ emoji: 🔍
4
+ colorFrom: red
5
+ colorTo: red
6
+ sdk: docker
7
+ app_port: 8501
8
+ tags:
9
+ - streamlit
10
+ pinned: false
11
+ short_description: Semantic Search on 1M+ papers from arXiv using word2vec
12
+ license: mit
13
+ ---