Update Dockerfile
This commit is contained in:
parent
882196850f
commit
ed288dee38
1 changed files with 3 additions and 5 deletions
|
@ -3,7 +3,8 @@ RUN dnf install -y cmake gcc gcc-c++ ninja-build glib2-devel
|
||||||
WORKDIR /home/donar-build
|
WORKDIR /home/donar-build
|
||||||
RUN chown -R 1000 /home/donar-build
|
RUN chown -R 1000 /home/donar-build
|
||||||
USER 1000
|
USER 1000
|
||||||
COPY . .
|
COPY ./src ./src
|
||||||
|
COPY CMakeLists.txt .
|
||||||
RUN mkdir out && \
|
RUN mkdir out && \
|
||||||
cd out && \
|
cd out && \
|
||||||
cmake -GNinja .. && \
|
cmake -GNinja .. && \
|
||||||
|
@ -19,8 +20,5 @@ COPY --from=builder /home/donar-build/out/donar /usr/local/bin
|
||||||
COPY --from=builder /home/donar-build/out/measlat /usr/local/bin
|
COPY --from=builder /home/donar-build/out/measlat /usr/local/bin
|
||||||
COPY --from=builder /home/donar-build/out/udpecho /usr/local/bin
|
COPY --from=builder /home/donar-build/out/udpecho /usr/local/bin
|
||||||
COPY --from=builder /home/donar-build/out/torecho /usr/local/bin
|
COPY --from=builder /home/donar-build/out/torecho /usr/local/bin
|
||||||
COPY --from=builder /home/donar-build/scripts/xp1-client /usr/local/bin
|
COPY ./scripts/* /usr/local/bin/
|
||||||
COPY --from=builder /home/donar-build/scripts/xp1-server /usr/local/bin
|
|
||||||
COPY --from=builder /home/donar-build/scripts/xp2-client /usr/local/bin
|
|
||||||
COPY --from=builder /home/donar-build/scripts/xp2-server /usr/local/bin
|
|
||||||
COPY ./torrc_simple /etc/torrc
|
COPY ./torrc_simple /etc/torrc
|
||||||
|
|
Loading…
Reference in a new issue