diff --git a/services/identity/Dockerfile b/services/identity/Dockerfile index 1f7e1512..6d4c74db 100644 --- a/services/identity/Dockerfile +++ b/services/identity/Dockerfile @@ -24,14 +24,15 @@ RUN gradle build RUN gradle bootJar # Main Image -FROM openjdk:17.0-jdk-slim +FROM eclipse-temurin:17-noble # #Java -RUN apt-get -y update && apt-get -y install curl && apt-get -y clean -# RUN apt-get -y update && apt-get -y install wget curl unzip && apt-get -y clean +RUN apt -y update && apt -y install curl && apt -y clean +# RUN apt -y update && apt -y install wget curl unzip && apt -y clean # RUN wget https://www.yourkit.com/download/docker/YourKit-JavaProfiler-2023.9-docker.zip -P /tmp/ && \ # unzip /tmp/YourKit-JavaProfiler-2023.9-docker.zip -d /usr/local && \ # rm /tmp/YourKit-JavaProfiler-2023.9-docker.zip RUN mkdir /app +WORKDIR /app COPY --from=gradlebuild /app/build/libs/identity-service-1.0-SNAPSHOT.jar /app/identity-service-1.0-SNAPSHOT.jar ARG SERVER_PORT diff --git a/services/web/Dockerfile b/services/web/Dockerfile index 46fa1b3a..d4abcdaa 100644 --- a/services/web/Dockerfile +++ b/services/web/Dockerfile @@ -13,7 +13,7 @@ # Node build -FROM node:16 AS build +FROM node:20 AS build RUN mkdir /app WORKDIR /app COPY ./*.json /app/ @@ -25,7 +25,7 @@ RUN NODE_OPTIONS=--max-old-space-size=1536 npm run build RUN ls /app/build # Main Image -FROM openresty/openresty:1.25.3.1-alpine +FROM openresty/openresty:alpine RUN apk add gettext curl # React RUN rm /etc/nginx/conf.d/default.conf