diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6147723 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM node:alpine + +LABEL maintainer="Jacob Kiers " + +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 diff --git a/Dockerfile.localbuild b/Dockerfile.localbuild new file mode 100644 index 0000000..9d1271e --- /dev/null +++ b/Dockerfile.localbuild @@ -0,0 +1,23 @@ +FROM node:alpine + +LABEL maintainer="Jacob Kiers " + +ARG USER="User Name" +ARG EMAIL="user.name@example.org" + +EXPOSE 8080 + +VOLUME /app +WORKDIR /app + +COPY . /code/tzk + +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 pip install --break-system-packages /code/tzk +RUN npx tiddlywiki