Short dockerfile
This commit is contained in:
parent
78133f9b55
commit
fb0ee05dd5
36
Dockerfile
36
Dockerfile
@ -44,24 +44,26 @@ RUN mkdir -p /app/move2radio-prop/fec/build && cd /app/move2radio-prop/fec/build
|
|||||||
cmake -DCMAKE_INSTALL_PREFIX=/app/move2radio/build/prefix/usr .. && make && make install
|
cmake -DCMAKE_INSTALL_PREFIX=/app/move2radio/build/prefix/usr .. && make && make install
|
||||||
COPY build/CMakeLists.txt /app/move2radio/CMakeLists.txt
|
COPY build/CMakeLists.txt /app/move2radio/CMakeLists.txt
|
||||||
WORKDIR /app/move2radio/build
|
WORKDIR /app/move2radio/build
|
||||||
RUN cmake -DAPPIMAGE=OFF -DCONDA_ENV=OFF -DLDPC_OFFLINE=ON -DGR_CCSDS_OFFLINE=ON -DFEC_OFFLINE=ON -DOFFLINE_DEPENDENCY_PATH=/app/move2radio-prop .. && \
|
RUN cmake -DAPPIMAGE=OFF -DCONDA_ENV=OFF -DLDPC_OFFLINE=ON -DGR_CCSDS_OFFLINE=ON -DFEC_OFFLINE=ON -DOFFLINE_DEPENDENCY_PATH=/app/move2radio-prop ..
|
||||||
make move2radio
|
RUN make build_boost build_curlpp
|
||||||
|
RUN make build_gr_osmosdr
|
||||||
|
# RUN make move2radio
|
||||||
|
|
||||||
# Run stage
|
# # Run stage
|
||||||
FROM base AS run
|
# FROM base AS run
|
||||||
ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin
|
# ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin
|
||||||
ENV PATH="/app/move2radio/build/prefix/usr/bin:${PATH}" \
|
# ENV PATH="/app/move2radio/build/prefix/usr/bin:${PATH}" \
|
||||||
PYTHONPATH="/app/move2radio/build/prefix/usr/lib/python2.7/dist-packages:${PYTHONPATH}" \
|
# PYTHONPATH="/app/move2radio/build/prefix/usr/lib/python2.7/dist-packages:${PYTHONPATH}" \
|
||||||
LD_LIBRARY_PATH="/app/move2radio/build/prefix/usr/lib:${LD_LIBRARY_PATH}"
|
# LD_LIBRARY_PATH="/app/move2radio/build/prefix/usr/lib:${LD_LIBRARY_PATH}"
|
||||||
|
|
||||||
# Copy sources from build stage
|
# # Copy sources from build stage
|
||||||
COPY --from=build /app/move2radio/build/prefix/usr /app/move2radio/build/prefix/usr
|
# COPY --from=build /app/move2radio/build/prefix/usr /app/move2radio/build/prefix/usr
|
||||||
COPY --from=build /app/move2radio/AppDir/move-ii-gr/AR4JA_r12_k1024n.a /app/gnuradio/
|
# COPY --from=build /app/move2radio/AppDir/move-ii-gr/AR4JA_r12_k1024n.a /app/gnuradio/
|
||||||
COPY build/gnuradio/* /app/gnuradio/
|
# COPY build/gnuradio/* /app/gnuradio/
|
||||||
|
|
||||||
# Install binaries
|
# # Install binaries
|
||||||
COPY build/fakeserver/* /app/fakeserver/
|
# COPY build/fakeserver/* /app/fakeserver/
|
||||||
COPY build/run*.sh /app/
|
# COPY build/run*.sh /app/
|
||||||
RUN chmod +x /app/run*.sh && ldconfig
|
# RUN chmod +x /app/run*.sh && ldconfig
|
||||||
|
|
||||||
ENTRYPOINT ["/app/run-cli.sh"]
|
# ENTRYPOINT ["/app/run-cli.sh"]
|
Loading…
Reference in New Issue
Block a user