2016-11-09 20:33:23 +01:00
|
|
|
FROM alpine:latest
|
2016-09-20 00:25:05 +02:00
|
|
|
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 \
|
|
|
|
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" ]
|