diff --git a/backend/application/syson-application/Dockerfile b/backend/application/syson-application/Dockerfile index 76850378f..2f2f2695e 100644 --- a/backend/application/syson-application/Dockerfile +++ b/backend/application/syson-application/Dockerfile @@ -1,7 +1,10 @@ -FROM node:18.7-slim +FROM node:18.7-alpine RUN adduser --disabled-password myuser -RUN apt-get update && apt-get install -y openjdk-17-jre && apt-get clean cache -COPY target/syson-application-2024.11.0.jar ./app.jar +RUN wget -O /etc/apk/keys/adoptium.rsa.pub https://packages.adoptium.net/artifactory/api/security/keypair/public/repositories/apk +RUN echo 'https://packages.adoptium.net/artifactory/apk/alpine/main' >> /etc/apk/repositories +RUN apk update && apk add temurin-17-jre +COPY target/syson-application-*.jar ./ +RUN find ./ -name '*.jar' ! -name '*-sources.jar' -exec mv {} syson-application.jar \; EXPOSE 8080 USER myuser -ENTRYPOINT ["java","-jar","/app.jar"] +ENTRYPOINT ["java","-jar","/syson-application.jar"]