-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (32 loc) · 922 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
37
38
FROM alpine
RUN apk add --no-cache cmake --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main
RUN apk update && \
apk add --no-cache \
# bash is needed for unit testing only
bash \
# the remaining packages are needed for monsid development
build-base \
cmake \
curl \
git \
g++ \
libcurl \
linux-headers \
make \
musl-dev \
ninja \
pkgconfig \
tar \
unzip \
zip
CMD ['/usr/local/bin/cmake', '--version']
RUN git clone --depth=1 --branch='project0' https://github.com/offscale/vcpkg && \
./vcpkg/bootstrap-vcpkg.sh && \
./vcpkg/vcpkg install c89stringutils cauthflow parson libcurl-simple-https
COPY . /google-cloud-c
WORKDIR /google-cloud-c/build
RUN cmake \
-DCMAKE_BUILD_TYPE="Debug" \
-DCMAKE_TOOLCHAIN_FILE="/vcpkg/scripts/buildsystems/vcpkg.cmake" \
.. && \
cmake --build .