Skip to content

Commit a8a67ef

Browse files
committed
fix dockerfile
Fixes: #334
1 parent 5567d3b commit a8a67ef

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

UnicodeJsps/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,26 @@ RUN apk add --update -q wget make gcc musl-dev
77
RUN wget -np -nv --reject-regex='.*\.(lib|exe)$' --cut-dirs=4 -nH -r ${CPATH}${CVERSION}/
88
RUN cd source && gcc -I ../include/ -static -Os -o3 -o bidiref1 bidiref1.c brutils.c brtest.c brtable.c brrule.c
99
RUN 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)
1213
RUN rm -rf /build/data/cldr/.git # unneeded
1314
FROM jetty:9-jre11-slim AS run
1415
ADD port-entrypoint.sh /port-entrypoint.sh
1516
ADD ./jetty.d/ROOT /var/lib/jetty/webapps/ROOT/
1617
ENTRYPOINT [ "/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
2021
COPY src/main/resources/org/unicode/jsp/bidiref1/ucd/ /usr/local/share/ucd/
2122
# this is the parent to 'ucd'
2223
ENV BIDIREFHOME /usr/local/share
2324
# copy the bidiref1 bin
2425
ENV BIDIREF1 /usr/local/bin/bidiref1
2526
COPY --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.
3132
EXPOSE 8080

0 commit comments

Comments
 (0)