-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 930 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 930 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
FROM python:3.12-slim
# Install system dependencies (Git and GitHub CLI are required for the Librarian)
RUN apt-get update && apt-get install -y \
git \
curl \
&& curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt-get update && apt-get install -y gh \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy the project files
COPY . .
# Install PyOB as a package
RUN pip install --upgrade pip
RUN pip install .
RUN pip install ruff mypy pytest types-requests types-chardet
# Set the entrypoint to run our launcher
ENTRYPOINT ["pyob"]