From bde2b90ee805fad2016191a22dcdb38bb3aef5d0 Mon Sep 17 00:00:00 2001 From: FDHoho007 Date: Fri, 19 Apr 2024 22:33:21 +0200 Subject: [PATCH] Explicitly set from images in docker files --- backend/Dockerfile | 4 ++-- frontend/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 57a2df3..734556c 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,11 +1,11 @@ -FROM maven:3.8.3-openjdk-17 AS backend +FROM docker.io/library/maven:3.8.3-openjdk-17 AS backend WORKDIR /app/backend COPY ./pom.xml ./ COPY ./src ./src/ RUN mvn package -DskipTests # Run -FROM openjdk:17-slim +FROM docker.io/library/openjdk:17-slim WORKDIR /app COPY --from=backend /app/backend/target/*.jar ./backend.jar EXPOSE 8081 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index bf5d3ad..88edadd 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16 AS frontend +FROM docker.io/library/node:16 AS frontend ARG VITE_API_URL ENV VITE_API_URL $VITE_API_URL WORKDIR /app/frontend