2019-05-15 13:52:39 +00:00
|
|
|
FROM fedora:30 as builder
|
2019-02-21 13:45:54 +00:00
|
|
|
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
|
2019-03-28 16:05:47 +00:00
|
|
|
COPY ./src ./src
|
|
|
|
COPY CMakeLists.txt .
|
2019-02-21 13:45:54 +00:00
|
|
|
RUN mkdir out && \
|
|
|
|
cd out && \
|
|
|
|
cmake -GNinja .. && \
|
|
|
|
ninja
|
|
|
|
|
2019-05-15 13:52:39 +00:00
|
|
|
FROM fedora:30
|
|
|
|
RUN dnf install -y glib2 tor valgrind nmap-ncat psmisc
|
2019-02-22 14:22:06 +00:00
|
|
|
WORKDIR /home/donar
|
2019-03-05 15:13:08 +00:00
|
|
|
RUN mkdir /home/donar/shared && mkdir /home/donar/res && chown -R 1000 /home/donar
|
2019-02-22 14:22:06 +00:00
|
|
|
USER 1000
|
|
|
|
ENV HOME /home/donar
|
2019-02-21 13:45:54 +00:00
|
|
|
COPY --from=builder /home/donar-build/out/donar /usr/local/bin
|
|
|
|
COPY --from=builder /home/donar-build/out/measlat /usr/local/bin
|
2019-02-22 16:45:48 +00:00
|
|
|
COPY --from=builder /home/donar-build/out/udpecho /usr/local/bin
|
2019-03-11 14:41:42 +00:00
|
|
|
COPY --from=builder /home/donar-build/out/torecho /usr/local/bin
|
2019-03-28 16:05:47 +00:00
|
|
|
COPY ./scripts/* /usr/local/bin/
|
2019-02-21 13:45:54 +00:00
|
|
|
COPY ./torrc_simple /etc/torrc
|