Skip to content

Instantly share code, notes, and snippets.

@simnalamburt
Created May 17, 2018 10:58
Show Gist options
  • Save simnalamburt/9e64f07fa0f91d696a2a80ca87abcd2c to your computer and use it in GitHub Desktop.
Save simnalamburt/9e64f07fa0f91d696a2a80ca87abcd2c to your computer and use it in GitHub Desktop.
PacVim 을 싱글 바이너리로 떨구려는 노력
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