FROM alpine
RUN apk update && apk add \
	make \
	gcc \
	g++ \
	musl-dev \
	wget
RUN wget https://github.com/unicode-org/icu/releases/download/release-73-2/icu4c-73_2-src.tgz
RUN tar -xf icu4c-73_2-src.tgz
WORKDIR /icu/source
ARG PREFIX=/opt/spm/libicu-73.2
RUN ./configure \
	--prefix=$PREFIX \
	--enable-static \
	--disable-shared \
	CFLAGS='-ffunction-sections -fdata-sections -Os'
RUN make -j$(nproc --all)
RUN make install
