add Dockerfile & .dockerignore
This commit is contained in:
parent
b0a2cff43a
commit
2a01eda564
2 changed files with 28 additions and 0 deletions
3
.dockerignore
Normal file
3
.dockerignore
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
/build
|
||||||
|
|
||||||
|
/Dockerfile
|
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
FROM debian:buster-slim AS builder
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y g++ cmake git
|
||||||
|
|
||||||
|
ADD . /app
|
||||||
|
RUN mkdir build && \
|
||||||
|
cd build && \
|
||||||
|
cmake .. && \
|
||||||
|
make -j && \
|
||||||
|
pwd && \
|
||||||
|
make install
|
||||||
|
|
||||||
|
FROM debian:buster-slim
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y libgomp1 && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
COPY --from=builder /usr/local/etc/pfaedle /usr/local/etc/pfaedle
|
||||||
|
COPY --from=builder /usr/local/bin/pfaedle /usr/local/bin/pfaedle
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/pfaedle"]
|
Loading…
Reference in a new issue