Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 896bc86

Browse files
committed
feat: Add Dockerfile
1 parent 9d4d005 commit 896bc86

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: Dockerfile

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM python:3.11-slim-buster AS poetry_builder
2+
ENV POETRY_HOME="/opt/poetry"
3+
ENV PATH="$POETRY_HOME/bin:$PATH"
4+
RUN apt update && apt install -y curl
5+
RUN curl -sSL https://install.python-poetry.org | python -
6+
7+
FROM poetry_builder AS builder
8+
RUN mkdir /build
9+
WORKDIR /build
10+
COPY tailscale_webfinger ./tailscale_webfinger
11+
COPY poetry.lock pyproject.toml README.md ./
12+
RUN poetry build -f wheel
13+
14+
FROM python:3.11-slim-buster
15+
WORKDIR /srv
16+
COPY --from=builder /build/dist/*.whl ./
17+
RUN pip install *.whl
18+
19+
ENTRYPOINT ["tailscale-webfinger"]

0 commit comments

Comments
 (0)