2016-11-09 20:33:23 +01:00
|
|
|
FROM alpine:latest
|
2017-03-09 19:14:37 +01:00
|
|
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
2015-07-25 01:48:43 +02:00
|
|
|
|
2016-11-09 20:33:23 +01:00
|
|
|
RUN apk add --no-cache \
|
2015-07-25 01:48:43 +02:00
|
|
|
ca-certificates \
|
2016-11-09 20:33:23 +01:00
|
|
|
curl \
|
2015-07-25 01:48:43 +02:00
|
|
|
libxml2 \
|
2017-01-11 01:21:30 +01:00
|
|
|
libressl \
|
2015-07-25 01:48:43 +02:00
|
|
|
xclip \
|
2016-11-09 20:33:23 +01:00
|
|
|
--repository https://dl-3.alpinelinux.org/alpine/edge/main
|
2015-07-25 01:48:43 +02:00
|
|
|
|
2016-11-09 20:33:23 +01:00
|
|
|
RUN set -x \
|
|
|
|
&& apk add --no-cache --virtual .build-deps \
|
|
|
|
autoconf \
|
|
|
|
automake \
|
|
|
|
build-base \
|
2016-12-02 22:42:52 +01:00
|
|
|
cmake \
|
2016-11-09 20:33:23 +01:00
|
|
|
curl-dev \
|
2015-07-25 01:48:43 +02:00
|
|
|
git \
|
2017-05-30 21:09:02 +02:00
|
|
|
libressl-dev \
|
2015-07-25 01:48:43 +02:00
|
|
|
libxml2-dev \
|
2016-05-16 01:51:05 +02:00
|
|
|
&& git clone --depth 1 https://github.com/LastPass/lastpass-cli.git /usr/src/lastpass-cli \
|
2016-11-09 20:33:23 +01:00
|
|
|
&& ( \
|
|
|
|
cd /usr/src/lastpass-cli \
|
2016-12-02 22:42:52 +01:00
|
|
|
&& cmake . \
|
2016-11-09 20:33:23 +01:00
|
|
|
&& make \
|
|
|
|
&& make install \
|
|
|
|
) \
|
2015-07-25 01:48:43 +02:00
|
|
|
&& rm -rf /usr/src/lastpass-cli \
|
2016-11-09 20:33:23 +01:00
|
|
|
&& apk del .build-deps
|
2015-07-25 01:48:43 +02:00
|
|
|
|
|
|
|
ENTRYPOINT [ "lpass" ]
|