Created
May 17, 2018 10:58
-
-
Save simnalamburt/9e64f07fa0f91d696a2a80ca87abcd2c to your computer and use it in GitHub Desktop.
PacVim 을 싱글 바이너리로 떨구려는 노력
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:9 | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
unzip \ | |
wget \ | |
libncurses-dev | |
ADD https://github.com/richfelker/musl-cross-make/archive/master.zip /root/musl-cross-make-master.zip | |
RUN unzip /root/musl-cross-make-master.zip -d /root | |
WORKDIR /root/musl-cross-make-master | |
RUN make install -j8 TARGET=x86_64-linux-musl OUTPUT=/usr/local/ | |
ADD https://github.com/jmoon018/PacVim/archive/master.zip /root/PacVim-master.zip | |
RUN unzip /root/PacVim-master.zip -d /root | |
WORKDIR /root/PacVim-master | |
ENV CXX=x86_64-linux-musl-g++ | |
ENV CXXFLAGS='-Os -flto -ffunction-sections -fdata-sections' | |
ENV LDFLAGS='-static -s -Wl,--gc-sections' | |
RUN make -j4 install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment