mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-30 05:18:11 +01:00
3a10b0889e
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
29 lines
637 B
Docker
29 lines
637 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:16.04
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.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 \
|
|
procps \
|
|
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" ]
|