2021-04-01 02:58:19 -04:00
|
|
|
FROM adoptopenjdk/openjdk16:alpine-jre AS base-core
|
|
|
|
ENV JAVA_HOME="/usr/lib/jvm/default-jvm/"
|
|
|
|
RUN apk add --update ttf-dejavu
|
|
|
|
ENV PATH=$PATH:${JAVA_HOME}/bin
|
|
|
|
|
|
|
|
|
|
|
|
FROM base-core
|
2021-04-01 03:23:43 -04:00
|
|
|
RUN mkdir /lc-core
|
2021-04-01 03:35:07 -04:00
|
|
|
COPY target/scala-2.13/LibreCaptcha.jar /lc-core
|
2021-04-01 02:58:19 -04:00
|
|
|
WORKDIR /lc-core
|
|
|
|
RUN mkdir data/
|
|
|
|
|
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
CMD [ "java", "-jar", "LibreCaptcha.jar" ]
|