-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
32 lines (24 loc) · 862 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
FROM ubuntu:latest as builder
WORKDIR /build
RUN apt-get update -qq && \
apt-get install -y zlib1g-dev \
git \
cmake \
build-essential \
python3 \
gcc-9 \
g++-9 \
&& \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9 && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9
COPY . /workspace
RUN cd /workspace; rm -rf build; mkdir build; cd build; cmake ..; make -j 8; make install;
# # Cleanup cmake and git
# RUN apt remove -y cmake git && apt autoremove -y
FROM ubuntu:latest
LABEL org.opencontainers.image.authors="[email protected]"
RUN apt-get update -qq && \
apt-get install -y zlib1g-dev \
python3
COPY --from=builder /usr/local/bin /bin
CMD ["/bin/moni"]