File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ARG BUILDPLATFORM=linux/amd64
2+ ARG EMBEDDED_JAVA_VERSION=21
23
34FROM --platform=${BUILDPLATFORM} node:lts-alpine AS builder
45
@@ -13,16 +14,15 @@ RUN apk add --no-cache wget &&\
1314 wget --input-file=lib-urls.txt --directory-prefix=production-code/daemon/lib/ &&\
1415 chmod a+x production-code/daemon/lib/*
1516
17+ FROM eclipse-temurin:${EMBEDDED_JAVA_VERSION}-alpine AS temurin-stage
18+
1619FROM ghcr.io/linuxserver/baseimage-alpine:edge
1720
18- ARG EMBEDDED_JAVA_VERSION=21
21+ ENV JAVA_HOME=/opt/java/openjdk
22+ COPY --from=temurin-stage $JAVA_HOME $JAVA_HOME
23+ ENV PATH="${JAVA_HOME}/bin:${PATH}"
1924
20- RUN apk add --no-cache wget && \
21- wget -O /etc/apk/keys/adoptium.rsa.pub https://packages.adoptium.net/artifactory/api/security/keypair/public/repositories/apk && \
22- echo 'https://packages.adoptium.net/artifactory/apk/alpine/main' | tee -a /etc/apk/repositories && \
23- apk update && \
24- apk add --no-cache \
25- temurin-${EMBEDDED_JAVA_VERSION}-jdk \
25+ RUN apk add --no-cache \
2626 nodejs \
2727 npm
2828
You can’t perform that action at this time.
0 commit comments