Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ htmlcov
*.pem
*.p12
*.zip
.venv
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# First stage: builder
FROM python:3.11 as builder

ENV TAKY_VERSION=0.9
ENV PUBLIC_IP=192.168.0.60

WORKDIR /build

RUN git clone --depth 1 https://github.com/tkuester/taky.git -b ${TAKY_VERSION}

WORKDIR /build/taky

RUN python3 -m pip install --upgrade pip && \
python3 -m pip install -r requirements.txt && \
python3 setup.py install && \
find /usr/local -name '*.pyc' -delete && \
find /usr/local -name '__pycache__' -type d -exec rm -rf {} +

RUN takyctl setup --public-ip=${PUBLIC_IP} /etc/taky

# Second stage: runtime
FROM python:3.11-slim as runtime

WORKDIR /

RUN mkdir /var/taky

COPY --from=builder /usr/local /usr/local
COPY --from=builder /etc/taky /etc/taky

ENTRYPOINT [ "taky", "-c", "/etc/taky/taky.conf" ]