-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathalpine.Dockerfile
More file actions
44 lines (38 loc) · 887 Bytes
/
alpine.Dockerfile
File metadata and controls
44 lines (38 loc) · 887 Bytes
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
37
38
39
40
41
42
43
44
FROM alpine
RUN apk add --no-cache \
bash \
build-base \
cmake \
curl \
curl-dev \
g++ \
gcc \
git \
libarchive-dev \
libbsd-dev \
linux-headers \
make \
musl-dev \
ninja-build \
openssl-dev \
perl \
pkgconf \
python3 \
rhash-dev \
sudo \
unzip \
zip && \
ln -s /usr/lib/ninja-build/bin/ninja /usr/bin/ninja
WORKDIR /
RUN git clone --depth=1 --single-branch https://github.com/offscale/vcpkg -b project0 && \
cd vcpkg && \
./bootstrap-vcpkg.sh -disableMetrics && \
./vcpkg install kubazip libarchive rhash
COPY . /libacquire
WORKDIR /libacquire/build
RUN cmake -DCMAKE_BUILD_TYPE='Debug' \
-DCMAKE_TOOLCHAIN_FILE='/vcpkg/scripts/buildsystems/vcpkg.cmake' \
.. && \
cmake --build .
CMD ctest .
# ENTRYPOINT ["/libacquire/build/acquire_cli", "--version"]