forked from lastpass/lastpass-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (33 loc) · 760 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM debian:testing-slim as build
ENV DEBIAN_FRONTEND=noninteractive
RUN mkdir -p /tmp/build
WORKDIR /tmp/build
COPY . /tmp/build/
RUN apt-get update \
&& apt-get --no-install-recommends -yqq install \
# Build dependencies
build-essential \
cmake \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
pkg-config \
# Run time dependencies
libcurl4 \
libssl1.1 \
libxml2 \
# Optionals handy for testing within the container
bash-completion \
ca-certificates \
xclip \
&& make \
&& make test \
&& make install \
&& apt-get autoremove --purge -yqq \
bash-completion \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
pkg-config \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* /tmp/build