-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
27 lines (25 loc) · 844 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
FROM alpine:latest
MAINTAINER James Z.M. Gao <[email protected]>
RUN set -ex \
&& wget http://download.savannah.gnu.org/releases/oath-toolkit/oath-toolkit-2.6.2.tar.gz \
&& apk --update upgrade \
&& apk add --no-progress --virtual .build-deps \
gcc \
linux-headers \
musl-dev \
automake \
autoconf \
libtool \
make \
diffutils \
file \
&& tar xzf /oath-toolkit-*.tar.gz \
&& cd /oath-toolkit-* \
&& ./configure --disable-pskc --disable-shared --disable-xmltest \
&& make \
&& make check \
&& strip oathtool/oathtool \
&& mv oathtool/oathtool /bin/ \
&& apk del .build-deps \
&& rm -rf ~/.cache /var/cache/apk/* /tmp/* /oath-tool*
ENTRYPOINT ["/bin/oathtool"]