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
|
|
|
|
WORKDIR /lc-core
|
2021-04-01 03:07:49 -04:00
|
|
|
COPY build/target/scala-2.13/LibreCaptcha.jar .
|
2021-04-01 02:58:19 -04:00
|
|
|
RUN mkdir data/
|
|
|
|
|
|
|
|
EXPOSE 8888
|
|
|
|
|
|
|
|
CMD [ "java", "-jar", "LibreCaptcha.jar" ]
|