adobe / experience-platform-streaming-connect

Experience platform Streaming Connectors for Data Ingress
Apache License 2.0
23 stars 20 forks source link

[GH-55] Docker multi-stage build #56

Closed OneCricketeer closed 9 months ago

OneCricketeer commented 1 year ago

Summary

After Gradle clean

$ docker build --no-cache -t streaming-connect .
...
=> => transferring context: 25.73kB

Related Issue

Closes #55

Changes

Update Dockerfile and .dockerignore to not use copied-in artifacts and rather build within the container

Benefits

  1. Consistent build versions. I have JDK 17 as default, but the runtime image wants JRE 11
  2. Faster build contexts, with the tradeoff of pulling more images (which would be cached later)

How Has This Been Tested?

Local builds

Types of changes

Checklist