Skip to content

Commit

Permalink
improvement(Dockerfile): remove prebuild (#57)
Browse files Browse the repository at this point in the history
Co-authored-by: MegEngine <megengine@megvii.com>
  • Loading branch information
tpoisonooo and megvii-mge authored Jan 10, 2022
1 parent ae65843 commit 4bbf15a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Dockerfile.github-release
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
FROM megflow:latest as stage

# prebuild rust-ffmpeg
RUN cd / && git clone https://github.com/tpoisonooo/rust-ffmpeg && cd rust-ffmpeg && cargo build --release
RUN mkdir -p /ffmpeg_dir && cp -rf `cat /tmp/megflow_ffmpeg_dynamic_link.sh | head -n 1`/* /ffmpeg_dir/ && rm /tmp/megflow_ffmpeg_dynamic_link.sh
ENV LD_LIBRARY_PATH /ffmpeg_dir/lib:$LD_LIBRARY_PATH
ENV PKG_CONFIG_PATH /ffmpeg_dir/lib/pkgconfig:$PKG_CONFIG_PATH
ENV FFMPEG_DIR /ffmpeg_dir
ENV CARGO_FEATURE_PREBUILD ""
ENV CARGO_FEATURE_DYNAMIC ""

# build .whl
RUN cd flow-python \
&& python3 setup.py bdist_wheel -p linux-x86_64 -d ../dist
Expand Down

0 comments on commit 4bbf15a

Please sign in to comment.