blob: ca0e9d78c14812812dc1d047111b435892b0c3c6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
FROM alpine
RUN apk update && apk add \
m4 \
make \
gcc \
musl-dev \
wget
RUN wget https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.gz
RUN tar -xf bison-3.8.2.tar.gz
WORKDIR /bison-3.8.2
ARG PREFIX=/opt/spm/bison-3.8.2
RUN ./configure \
--prefix=$PREFIX \
--disable-rpath \
--enable-relocatable \
--disable-nls \
CFLAGS='-ffunction-sections -fdata-sections -Os'
RUN make -j$(nproc --all)
RUN make install
|