mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-27 04:16:45 +01:00
e256239308
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
28 lines
621 B
Docker
28 lines
621 B
Docker
# Run yubico-piv-tool in a container
|
|
#
|
|
# docker run --rm -it \
|
|
# --device /dev/bus/usb \
|
|
# --device /dev/usb
|
|
# --name yubico-piv-tool \
|
|
# jess/yubico-piv-tool
|
|
#
|
|
FROM ubuntu:14.04
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
software-properties-common \
|
|
--no-install-recommends && \
|
|
add-apt-repository ppa:yubico/stable && \
|
|
apt-get update && apt-get install -y \
|
|
pcscd \
|
|
usbutils \
|
|
yubico-piv-tool \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /root/
|
|
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|
|
CMD [ "yubico-piv-tool", "--help" ]
|