Skip to content

Commit

Permalink
feat: Use CircleCI current instead of edge
Browse files Browse the repository at this point in the history
According to CircleCI CI, edge is only tagged when active development whereas current is still tagged on a monthly basis.
This should avoid relying on outdated image when no development occurs.
  • Loading branch information
PerfectSlayer committed Aug 21, 2024
1 parent 6433ead commit ffa3f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1.6

# Intermediate image used to prune cruft from JDKs and squash them all.
FROM cimg/base:edge-22.04 AS all-jdk
FROM cimg/base:current-22.04 AS all-jdk

COPY --from=eclipse-temurin:8-jdk-jammy /opt/java/openjdk /usr/lib/jvm/8
COPY --from=eclipse-temurin:11-jdk-jammy /opt/java/openjdk /usr/lib/jvm/11
Expand Down Expand Up @@ -59,7 +59,7 @@ COPY --from=all-jdk /usr/lib/jvm/21 /usr/lib/jvm/21

# Base image with minimunm requirenents to build the project.
# Based on CircleCI Base Image with Ubuntu 22.04.3 LTS, present in most runners.
FROM cimg/base:edge-22.04 AS base
FROM cimg/base:current-22.04 AS base

# https://docs.github.com/en/packages/learn-github-packages/connecting-a-repository-to-a-package
LABEL org.opencontainers.image.source=https://github.com/DataDog/dd-trace-java-docker-build
Expand Down

0 comments on commit ffa3f61

Please sign in to comment.