Skip to content

Commit 7e872e5

Browse files
author
Manuel
committed
build(docker): Change image type of backend to alpine and pin image version of frontend #4
1 parent e141d10 commit 7e872e5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

backend/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ COPY pom.xml .
44
COPY src ./src
55
RUN mvn clean install -DskipTests
66

7-
FROM openjdk:21 AS runner
7+
FROM alpine:3.22 AS runner
8+
RUN apk update && apk add --upgrade curl && apk --no-cache add openjdk21
89
WORKDIR /app
910
EXPOSE 8080
1011
COPY --from=builder /app/target/*.jar app.jar

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN npm ci
55
COPY . .
66
RUN npm run build -- --output-path=./dist/ --configuration=production
77

8-
FROM nginx:alpine AS runner
8+
FROM nginx:1.29.1-alpine AS runner
99
COPY nginx.conf /etc/nginx/
1010
COPY --from=builder /app/dist/browser /usr/share/nginx/html
1111
EXPOSE 4200

0 commit comments

Comments
 (0)