-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (21 loc) · 716 Bytes
/
Dockerfile
File metadata and controls
27 lines (21 loc) · 716 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
FROM alpine:3.12.1 as build
RUN apk add --no-cache \
bash boost-dev boost-static git g++ make cmake \
clang py-pip shellcheck shfmt grep npm \
&& pip install cpplint \
&& npm install -g markdownlint-cli
COPY . /working
WORKDIR /working
# lint and build
RUN ./lint.sh \
&& mkdir build \
&& cd build \
&& cmake .. -DPOST_TAG_SYSTEM_BUILD_TESTING=ON \
-DPOST_TAG_SYSTEM_BUILD_CLI=ON \
-DPOST_TAG_SYSTEM_CLI_STATIC_BUILD=ON \
-DPOST_TAG_SYSTEM_ENABLE_ALLWARNINGS=ON \
-DCMAKE_BUILD_TYPE=Release \
&& cmake --build . --config Release
FROM alpine:3.12.1
COPY --from=build /working/build/CLI/wolfram-postproject /usr/bin/wolfram-postproject
ENTRYPOINT ["/usr/bin/wolfram-postproject"]