Add a Dockerfile to my project
This commit is contained in:
parent
87b6a226a7
commit
99d668f4d6
1 changed files with 17 additions and 0 deletions
17
Dockerfile
Normal file
17
Dockerfile
Normal file
|
@ -0,0 +1,17 @@
|
|||
FROM fedora:29 as builder
|
||||
RUN dnf install -y cmake gcc gcc-c++ ninja-build glib2-devel
|
||||
WORKDIR /home/donar-build
|
||||
RUN chown -R 1000 /home/donar-build
|
||||
USER 1000
|
||||
COPY . .
|
||||
RUN mkdir out && \
|
||||
cd out && \
|
||||
cmake -GNinja .. && \
|
||||
ninja
|
||||
|
||||
FROM fedora:29
|
||||
RUN dnf install -y glib2 tor
|
||||
COPY --from=builder /home/donar-build/out/donar /usr/local/bin
|
||||
COPY --from=builder /home/donar-build/out/measlat /usr/local/bin
|
||||
COPY ./torrc_simple /etc/torrc
|
||||
USER 1000
|
Loading…
Reference in a new issue