-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 779 Bytes
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 779 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
FROM python:3.12-slim AS builder
WORKDIR /app
COPY pyproject.toml README.md LICENSE ./
COPY paper_search/ paper_search/
RUN pip install --no-cache-dir build \
&& python -m build --wheel \
&& pip install --no-cache-dir dist/*.whl
FROM python:3.12-slim
WORKDIR /app
COPY --from=builder /usr/local/lib/python3.12/site-packages /usr/local/lib/python3.12/site-packages
COPY --from=builder /usr/local/bin/paper-search /usr/local/bin/paper-search
ENV PAPER_SEARCH_UNPAYWALL_EMAIL=""
ENV PAPER_SEARCH_CORE_API_KEY=""
ENV PAPER_SEARCH_SEMANTIC_SCHOLAR_API_KEY=""
ENV PAPER_SEARCH_ZENODO_ACCESS_TOKEN=""
ENV PAPER_SEARCH_DOAJ_API_KEY=""
ENV PAPER_SEARCH_GOOGLE_SCHOLAR_PROXY_URL=""
ENV PAPER_SEARCH_IEEE_API_KEY=""
ENV PAPER_SEARCH_ACM_API_KEY=""
ENTRYPOINT ["paper-search"]