3 ms·
> Case in point, you can't set file ownership when you copy files into the image so that extra step adds that much more bloat. I think you could solve that pro
by imtringued 9y ago
> Case in point, you can't set file ownership when you copy files into the image so that extra step adds that much more bloat.
I think you could solve that problem easily with multi-stage Dockerfiles.
FROM alpine:latest
COPY . /app
RUN chown/chmod
FROM alpine:latest
COPY --from=0 /app /app
- inferiorhuman 9y agoThat looks suspiciously like an additional layer beyond the copy step to me (either that or a terrifically non-intuitive syntax).