-
Notifications
You must be signed in to change notification settings - Fork 0
/
devel.Dockerfile
32 lines (24 loc) · 1.1 KB
/
devel.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
FROM debian:stretch AS build
MAINTAINER Jack Laxson <jackjrabbit@gmail.com>
COPY stretch-src.list /etc/apt/sources.list.d/
RUN apt-get update && apt-get build-dep -y taskd && apt install -y git gnutls-bin
RUN git clone --recursive https://github.com/jrabbit/taskserver.git /srv/taskserver &&\
cd /srv/taskserver && git checkout debian-1.2 &&\
tar -cJ --wildcards --exclude '.git*' . > ../taskd_1.2.0.orig.tar.xz &&\
dpkg-buildpackage -us -uc
FROM debian:stretch
COPY --from=build /srv/taskd_1.2.0-1_amd64.deb /srv/taskd_prebaked.deb
RUN apt update && apt install -y libgnutls30 gnutls-bin && apt clean
RUN dpkg -i /srv/taskd_prebaked.deb
ENV TASKDDATA=/var/lib/taskd
WORKDIR /var/lib/taskd
RUN rm config
COPY entrypoint.sh /bin/
ENV TAGNAME=v0.0.3
ADD https://github.com/jrabbit/taskd-client-go/releases/download/$TAGNAME/taskd-client /bin/
RUN chmod +x /bin/taskd-client
EXPOSE 53589
VOLUME /var/lib/taskd
ENTRYPOINT ["/bin/entrypoint.sh"]
CMD ["server"]
HEALTHCHECK --interval=5m CMD taskd-client --norc --cacert pki/ca.cert.pem --certificate pki/client.cert.pem --key pki/client.key.pem --insecure healthcheck