tor_multipath_voip/Dockerfile
2019-02-22 15:22:06 +01:00

20 lines
525 B
Docker

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
WORKDIR /home/donar
RUN chown -R 1000 /home/donar
USER 1000
ENV HOME /home/donar
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