@@ -7,25 +7,26 @@ RUN apk add --update -q wget make gcc musl-dev
77RUN wget -np -nv --reject-regex='.*\. (lib|exe)$' --cut-dirs=4 -nH -r ${CPATH}${CVERSION}/
88RUN cd source && gcc -I ../include/ -static -Os -o3 -o bidiref1 bidiref1.c brutils.c brtest.c brtable.c brrule.c
99RUN ls -lh /build/source/bidiref1 && (/build/source/bidiref1 || true)
10- ADD target/cldr-unicodetools.tgz /tmp/
11- RUN mkdir /build/data && cd /build/data && tar xfpz /tmp/cldr-unicodetools.tgz && du -sh /build/data/*
10+ # copy and unpack to /tmp/data
11+ ADD target/cldr-unicodetools.tgz /build/data/
12+ # move this into place (including unicodetools/unicodetools)
1213RUN rm -rf /build/data/cldr/.git # unneeded
1314FROM jetty:9-jre11-slim AS run
1415ADD port-entrypoint.sh /port-entrypoint.sh
1516ADD ./jetty.d/ROOT /var/lib/jetty/webapps/ROOT/
1617ENTRYPOINT [ "/port-entrypoint.sh" ]
1718# copy the .war
18- ADD target/UnicodeJsps.war /var/lib/jetty/webapps/
19+ ADD ./ target/UnicodeJsps.war /var/lib/jetty/webapps/
1920# copy the UCD for bidiref1
2021COPY src/main/resources/org/unicode/jsp/bidiref1/ucd/ /usr/local/share/ucd/
2122# this is the parent to 'ucd'
2223ENV BIDIREFHOME /usr/local/share
2324# copy the bidiref1 bin
2425ENV BIDIREF1 /usr/local/bin/bidiref1
2526COPY --from=cbuild /build/source/bidiref1 /usr/local/bin/
26- COPY --from=cbuild /build/data/cldr /usr/local/lib/cldr
27- RUN mkdir /usr/local/ lib/unicodetools
28- COPY --from=cbuild /build/data/unicodetools /usr/local/ lib/unicodetools/unicodetools
29- ENV JAVA_OPTIONS -DCLDR_DIR=/usr/local/ lib/cldr -DUNICODETOOLS_REPO_DIR=/usr/local/ lib/unicodetools
27+ RUN mkdir -p /var/lib/jetty/data/unicodetools
28+ COPY --from=cbuild /build/data/cldr /var/ lib/jetty/data/cldr
29+ COPY --from=cbuild /build/data/unicodetools /var/ lib/jetty/data /unicodetools/unicodetools
30+ ENV JAVA_OPTIONS -DCLDR_DIR=/var/ lib/jetty/data/ cldr -DUNICODETOOLS_REPO_DIR=/var/ lib/jetty/data /unicodetools
3031# This is the default PORT. Override by setting PORT.
3132EXPOSE 8080
0 commit comments