add Dockerfile
This commit is contained in:
parent
8160dc371e
commit
6e82bac086
2 changed files with 22 additions and 0 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
docker
|
21
Docker/Dockerfile
Normal file
21
Docker/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
FROM alpine:3.17 AS build-env
|
||||||
|
|
||||||
|
#RUN apk add --update autoconf automake libtool git make gcc zlib g++
|
||||||
|
RUN apk add --update make gcc cmake g++ linux-headers
|
||||||
|
|
||||||
|
COPY . src/
|
||||||
|
|
||||||
|
RUN cd src \
|
||||||
|
&& mkdir BUILD \
|
||||||
|
&& cd BUILD \
|
||||||
|
&& cmake .. \
|
||||||
|
&& make \
|
||||||
|
&& make install
|
||||||
|
|
||||||
|
FROM alpine:3.17
|
||||||
|
|
||||||
|
COPY --from=build-env /usr/local/bin /usr/local/bin
|
||||||
|
|
||||||
|
WORKDIR /
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/friidump"]
|
Loading…
Add table
Add a link
Reference in a new issue