Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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