2020-09-28 03:26:34 +05:00
|
|
|
FROM alpine:3.12
|
2020-02-24 21:20:22 +05:00
|
|
|
|
|
|
|
COPY ./taskd.sh /usr/bin
|
|
|
|
|
|
|
|
RUN apk add --no-cache --virtual build-dependencies \
|
|
|
|
gnutls-dev \
|
|
|
|
libuuid \
|
|
|
|
cmake \
|
|
|
|
git \
|
|
|
|
build-base \
|
|
|
|
util-linux-dev; \
|
|
|
|
git clone https://github.com/GothenburgBitFactory/taskserver.git && cd taskserver; \
|
|
|
|
git submodule init; git submodule update; \
|
|
|
|
mkdir build && cd build; \
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..; \
|
|
|
|
make; \
|
|
|
|
make install; \
|
2020-11-20 16:55:46 +05:00
|
|
|
cd .. && cp -r pki /usr/share/doc/taskd/; \
|
2020-02-24 21:20:22 +05:00
|
|
|
cd ../.. && rm -rf taskserver; \
|
|
|
|
apk del --purge build-dependencies; \
|
|
|
|
apk add --no-cache gnutls libuuid util-linux bash libgcc libstdc++; \
|
|
|
|
mkdir /var/taskd && chmod +x /usr/bin/taskd.sh
|
|
|
|
|
|
|
|
ENV TASKDATA /var/taskd
|
|
|
|
|
|
|
|
VOLUME ["/var/taskd"]
|
|
|
|
EXPOSE 53589
|
2020-09-28 03:26:34 +05:00
|
|
|
CMD ["/usr/bin/taskd.sh"]
|