2017-11-21 21:09:58 +01:00
|
|
|
# Run ykpersonalize in a container
|
|
|
|
#
|
|
|
|
# docker run --rm -it \
|
|
|
|
# --device /dev/bus/usb \
|
|
|
|
# --device /dev/usb
|
|
|
|
# --name ykpersonalize \
|
|
|
|
# jess/ykpersonalize
|
|
|
|
#
|
|
|
|
FROM ubuntu:16.04
|
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2017-11-27 21:20:56 +01:00
|
|
|
pcscd \
|
2018-09-25 00:36:11 +02:00
|
|
|
procps \
|
2017-11-21 21:09:58 +01:00
|
|
|
software-properties-common \
|
|
|
|
--no-install-recommends && \
|
|
|
|
add-apt-repository ppa:yubico/stable && \
|
|
|
|
apt-get update && apt-get install -y \
|
|
|
|
yubikey-manager \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2017-11-27 21:20:56 +01:00
|
|
|
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
|
|
|
|
|
2017-11-21 21:09:58 +01:00
|
|
|
WORKDIR /root/
|
|
|
|
|
2017-11-27 21:20:56 +01:00
|
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]
|
2017-11-21 21:09:58 +01:00
|
|
|
CMD [ "ykman", "--help" ]
|