Secrets should not be generated as part of the docker image build. Instead, they need to be mounted in to the container.
Also reduces the image size from 1.81GB to 108MB.
Differential D8580
[Identity] Avoid secret generation and slim down size of identity server docker image • jon on Jul 19 2023, 7:05 PM. Authored by Tags None Referenced Files
Details Secrets should not be generated as part of the docker image build. Instead, they need to be mounted in to the container. Also reduces the image size from 1.81GB to 108MB. docker build -f services/identity/Dockerfile . # or cd services docker compose build identity
Diff Detail
Event TimelineComment Actions Nice! I was recently trying something similar for blob service dockerfile, but I could only get down to ~600MB in the runner stage, so 108MB is impressive. (I used a different base image for the runner stage, rust-slim is 250MB already)
Shouldn't the volume mapping be added to the docker-compose file? IIRC @varun uses it for deployment.
Comment Actions Thanks for explanations!
|