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