-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (27 loc) · 811 Bytes
/
Dockerfile
File metadata and controls
43 lines (27 loc) · 811 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
ARG RELEASE=24.04
FROM ubuntu:${RELEASE} as c-dev-environment
MAINTAINER borisskert <boris.skert@gmail.com>
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && \
apt install -y git \
build-essential \
cmake \
clang \
meson \
pkg-config \
&& \
apt clean && \
rm -rf /var/lib/apt/lists/*
ENV SHELL /bin/bash
FROM c-dev-environment as build
COPY . /usr/local/src
WORKDIR /usr/local/src
RUN cd build && \
cmake .. && \
cmake --build .
FROM ubuntu:${RELEASE}
WORKDIR /opt
ENV LD_LIBRARY_PATH /usr/local/lib
COPY --from=build /usr/local/src/build/Criterion/* /usr/local/lib/
COPY --from=build /usr/local/src/build/test/c_katas_test .
CMD ["./c_katas_test"]