forked from JuliaRegistries/TagBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (15 loc) · 718 Bytes
/
Dockerfile
File metadata and controls
18 lines (15 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.14-slim AS builder
RUN pip install --no-cache-dir poetry poetry-plugin-export
COPY pyproject.toml .
COPY poetry.lock .
RUN poetry export --all-extras --format requirements.txt --output /root/requirements.txt
FROM python:3.14-slim
LABEL org.opencontainers.image.source="https://github.com/JuliaRegistries/TagBot"
RUN apt-get update && apt-get install -y git gnupg make openssh-client
COPY --from=builder /root/requirements.txt /root/requirements.txt
RUN pip install --no-cache-dir --requirement /root/requirements.txt
COPY pyproject.toml /root/pyproject.toml
COPY action.yml /root/action.yml
COPY tagbot /root/tagbot
RUN pip install --no-cache-dir --no-deps /root
CMD ["python", "-m", "tagbot.action"]