tzk/Dockerfile
Jacob Kiers 6a18330768 Add Dockerfiles
Signed-off-by: Jacob Kiers <code@kiers.eu>
2025-05-29 17:06:50 +02:00

26 lines
573 B
Docker

FROM node:alpine
LABEL maintainer="Jacob Kiers <code@kiers.eu>"
ARG USER="User Name"
ARG EMAIL="user.name@example.org"
EXPOSE 8080
VOLUME /app
WORKDIR /app
ENTRYPOINT ["/sbin/tini", "--"]
CMD ["tzk", "listen"]
RUN apk add --no-cache tini py3-pip git
RUN git config --global user.name "${USER}" && \
git config --global user.email "${EMAIL}"
RUN mkdir -p /code/tzk && \
wget https://code.kiers.eu/jjkiers/tzk/archive/jk-version.tar.gz -O - \
| tar --strip-components 1 -xzC /code/tzk
RUN pip install --break-system-packages /code/tzk
RUN npx tiddlywiki