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
|
||||
COPY build/CMakeLists.txt /app/move2radio/CMakeLists.txt
|
||||
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 .. && \
|
||||
make move2radio
|
||||
RUN cmake -DAPPIMAGE=OFF -DCONDA_ENV=OFF -DLDPC_OFFLINE=ON -DGR_CCSDS_OFFLINE=ON -DFEC_OFFLINE=ON -DOFFLINE_DEPENDENCY_PATH=/app/move2radio-prop ..
|
||||
RUN make build_boost build_curlpp
|
||||
RUN make build_gr_osmosdr
|
||||
# RUN make move2radio
|
||||
|
||||
# Run stage
|
||||
FROM base AS run
|
||||
ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin
|
||||
ENV PATH="/app/move2radio/build/prefix/usr/bin:${PATH}" \
|
||||
PYTHONPATH="/app/move2radio/build/prefix/usr/lib/python2.7/dist-packages:${PYTHONPATH}" \
|
||||
LD_LIBRARY_PATH="/app/move2radio/build/prefix/usr/lib:${LD_LIBRARY_PATH}"
|
||||
# # Run stage
|
||||
# FROM base AS run
|
||||
# ENV DEBIAN_FRONTEND=noninteractive TZ=Europe/Berlin
|
||||
# ENV PATH="/app/move2radio/build/prefix/usr/bin:${PATH}" \
|
||||
# PYTHONPATH="/app/move2radio/build/prefix/usr/lib/python2.7/dist-packages:${PYTHONPATH}" \
|
||||
# LD_LIBRARY_PATH="/app/move2radio/build/prefix/usr/lib:${LD_LIBRARY_PATH}"
|
||||
|
||||
# Copy sources from build stage
|
||||
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 build/gnuradio/* /app/gnuradio/
|
||||
# # Copy sources from build stage
|
||||
# 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 build/gnuradio/* /app/gnuradio/
|
||||
|
||||
# Install binaries
|
||||
COPY build/fakeserver/* /app/fakeserver/
|
||||
COPY build/run*.sh /app/
|
||||
RUN chmod +x /app/run*.sh && ldconfig
|
||||
# # Install binaries
|
||||
# COPY build/fakeserver/* /app/fakeserver/
|
||||
# COPY build/run*.sh /app/
|
||||
# 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