-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (37 loc) · 1.46 KB
/
Dockerfile
File metadata and controls
44 lines (37 loc) · 1.46 KB
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
43
44
FROM alpine:3.4
LABEL maintainer="rucas <lucas.rondenet@gmail.com>"
ENV GOSU_VERSION 1.10
ENV TASKDDATA /var/taskd
RUN addgroup -S taskd \
&& adduser -S -G taskd taskd \
&& mkdir -p "$TASKDDATA" \
&& chown -R taskd:taskd "$TASKDDATA"
RUN apk add --no-cache \
taskd=1.1.0-r2 \
taskd-pki=1.1.0-r2 \
&& rm -rf /var/cache/apk/*
RUN set -x \
&& apk add --no-cache --virtual gosu-deps \
dpkg=1.18.7-r0 \
gnupg=2.1.12-r0 \
openssl=1.0.2n-r0 \
&& dpkgArch="$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
&& wget -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch" \
&& wget -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$dpkgArch.asc" \
&& scratch="$(mktemp -d)" \
&& export GNUPGHOME=$scratch \
&& GPG_KEYS=B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& ( gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$GPG_KEYS" \
|| gpg --keyserver pgp.mit.edu --recv-keys "$GPG_KEYS" \
|| gpg --keyserver keyserver.pgp.com --recv-keys "$GPG_KEYS" ) \
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
&& rm -r "$GNUPGHOME" /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu \
&& gosu nobody true \
&& apk del gosu-deps
VOLUME ${TASKDDATA}
WORKDIR ${TASKDDATA}
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 53589
CMD ["taskd", "server"]