-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (29 loc) · 948 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ARG SRC="https://git.alpinelinux.org/aports/tree/main/icu?h=master"
ARG VER="master"
ARG OWNER=manarth
ARG REPO=icu-static
FROM alpine:latest as build
RUN apk add alpine-sdk
# The `aports` repo contains the APKBUILD files for every Alpine Linux package.
RUN git clone https://gitlab.alpinelinux.org/alpine/aports /srv/aports
WORKDIR /srv/aports
# Prepare to build ICU.
RUN apk add python3 py-yaml
COPY icu-datapackaging-static.patch /tmp
RUN patch -p1 < /tmp/icu-datapackaging-static.patch
WORKDIR /srv/aports/main/icu
RUN abuild -F unpack
RUN abuild -F build
RUN abuild -F package
# Deploy into an empty container for packaging.
FROM scratch as dist
ARG SRC
ARG VER
ARG OWNER
ARG REPO
COPY --from=build /srv/aports/main/icu/pkg/icu/ /
COPY --from=build /bin/false /bin/false
ENTRYPOINT [ "/bin/false" ]
LABEL icu-static.source=${SRC}
LABEL icu-static.version=${VER}
LABEL org.opencontainers.image.source https://github.com/${OWNER}/${REPO}