Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PacVim 을 싱글 바이너리로 떨구려는 노력
FROM debian:9
RUN apt-get update && apt-get install -y \
build-essential \
unzip \
wget \
ADD /root/
RUN unzip /root/ -d /root
WORKDIR /root/musl-cross-make-master
RUN make install -j8 TARGET=x86_64-linux-musl OUTPUT=/usr/local/
ADD /root/
RUN unzip /root/ -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