-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
42 lines (32 loc) · 845 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM alpine:3.19 AS build
ARG TANG_TAG=v14
RUN set -eux && \
apk add --no-cache \
git g++ ninja meson \
jose-dev http-parser-dev jansson-dev socat && \
git clone https://github.com/latchset/tang.git && \
cd tang && \
git fetch --all --tags && \
git checkout ${TANG_TAG} -b ${TANG_TAG} && \
mkdir build && \
cd build && \
meson setup .. --prefix=/tang-install && \
ninja && \
ninja install
FROM alpine:3.19
COPY --from=build \
/tang-install/libexec \
/tang-install/bin \
/usr/bin/
COPY ./docker-entrypoint ./run-app /usr/bin/
RUN set -eux && \
apk add --no-cache su-exec curl http-parser jansson jose
EXPOSE 8000
VOLUME [ "/data" ]
ENV PUID=1000
ENV PGID=1000
ENV TANG_DB=/data
ENV TANG_PORT=8000
STOPSIGNAL SIGKILL
ENTRYPOINT ["docker-entrypoint"]
CMD ["daemon"]