memos/memos-backend (sha256:3ce77bc545f7bdacd4d6de1fee7e779ac83618ea4851abdc8f60b0c2007168a2)
Published 2024-11-22 10:15:38 +00:00 by sebastian
Installation
docker pull git.fawkes100.de/sebastian/memos/memos-backend@sha256:3ce77bc545f7bdacd4d6de1fee7e779ac83618ea4851abdc8f60b0c2007168a2
sha256:3ce77bc545f7bdacd4d6de1fee7e779ac83618ea4851abdc8f60b0c2007168a2
Image Layers
ADD file:f278386b0cef68136129f5f58c52445590a417b624d62bca158d4dc926c340df in / |
CMD ["/bin/sh"] |
/bin/sh -c apk add --no-cache java-cacerts |
ENV JAVA_HOME=/opt/openjdk-17 |
ENV PATH=/opt/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
ENV JAVA_VERSION=17-ea+14 |
/bin/sh -c set -eux; arch="$(apk --print-arch)"; case "$arch" in 'x86_64') downloadUrl='https://download.java.net/java/early_access/alpine/14/binaries/openjdk-17-ea+14_linux-x64-musl_bin.tar.gz'; downloadSha256='f07a1ac921333dafac1cd886ad49600ce143be7efebd32e1a02599a8a0829dd4'; ;; *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; esac; wget -O openjdk.tgz "$downloadUrl"; echo "$downloadSha256 *openjdk.tgz" | sha256sum -c -; mkdir -p "$JAVA_HOME"; tar --extract --file openjdk.tgz --directory "$JAVA_HOME" --strip-components 1 --no-same-owner ; rm openjdk.tgz*; rm -rf "$JAVA_HOME/lib/security/cacerts"; ln -sT /etc/ssl/certs/java/cacerts "$JAVA_HOME/lib/security/cacerts"; java -Xshare:dump; fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; javac --version; java --version |
CMD ["jshell"] |
RUN /bin/sh -c addgroup -S spring && adduser -S spring -G spring # buildkit |
USER spring:spring |
COPY /home/app/target/*.jar app.jar # buildkit |
EXPOSE map[8080/tcp:{}] |
ENTRYPOINT ["java" "-jar" "/app.jar"] |