forked from jinja2cpp/tools-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.alpine
37 lines (31 loc) · 1.02 KB
/
Dockerfile.alpine
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
FROM alpine:latest as builder
LABEL maintainer="Andrey Bronin <[email protected]>"
RUN apk update && \
apk upgrade && \
apk --update add \
# alpine-sdk \
g++ \
build-base \
cmake \
libstdc++ \
git \
linux-headers \
py-pip && \
pip install conan && \
rm -rf /var/cache/apk/*
COPY . /project
WORKDIR /project
RUN conan user
RUN conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
RUN conan remote add andreybronin https://api.bintray.com/conan/andreybronin/conan
RUN conan remote add martinmoene https://api.bintray.com/conan/martinmoene/nonstd-lite
RUN conan remote add flexferrum https://api.bintray.com/conan/flexferrum/conan-packages
RUN conan install . --build=missing
RUN cmake -DCMAKE_BUILD_TYPE=Release . && make
FROM alpine:latest
COPY --from=builder /project/bin/jinja2cpp-cli /jinja2cpp
RUN apk update && \
apk upgrade && \
apk --update add libstdc++ \
rm -rf /var/cache/apk/*
ENTRYPOINT [ "/jinja2cpp" ]