2015-10-10 21:49:12 -07:00
|
|
|
# Run yubico-piv-tool in a container
|
2015-10-10 21:34:29 -07:00
|
|
|
#
|
|
|
|
# docker run --rm -it \
|
|
|
|
# --device /dev/bus/usb \
|
|
|
|
# --device /dev/usb
|
|
|
|
# --name yubico-piv-tool \
|
|
|
|
# jess/yubico-piv-tool
|
|
|
|
#
|
2016-09-19 11:31:11 -07:00
|
|
|
FROM ubuntu:16.04
|
2017-03-09 18:14:37 +00:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-10-10 21:34:29 -07:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2015-11-23 13:05:19 -08:00
|
|
|
software-properties-common \
|
|
|
|
--no-install-recommends && \
|
|
|
|
add-apt-repository ppa:yubico/stable && \
|
|
|
|
apt-get update && apt-get install -y \
|
2015-10-31 22:14:28 -07:00
|
|
|
pcscd \
|
2015-10-10 21:34:29 -07:00
|
|
|
usbutils \
|
|
|
|
yubico-piv-tool \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2015-10-11 02:43:00 -07:00
|
|
|
WORKDIR /root/
|
|
|
|
|
2015-10-31 22:14:28 -07:00
|
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|
2015-10-10 21:49:12 -07:00
|
|
|
CMD [ "yubico-piv-tool", "--help" ]
|