Skip to content

Commit

Permalink
fix: java/simple/Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Jul 1, 2024
1 parent 06561f4 commit cb8d140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/simple/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.18 AS builder
FROM alpine:3 AS builder


# Install dependencies
Expand All @@ -12,7 +12,7 @@ COPY . .
RUN javac Hello.java

# Start a clean image
FROM alpine:3.18
FROM alpine:3

# Install jre
RUN apk add openjdk11-jre
Expand Down

0 comments on commit cb8d140

Please sign in to comment.