Closed kmehant closed 5 years ago
@Chuxel @egamma I would like to receive a review upon my work :)
@kmehant what was the reason for closing the PR?
Hi @egamma thanks a lot for looking in to this. I had spoken to Chuck about this. I agree with the points that
Explanation to changes implemented
Shifted the base image to
python:3-slim
frompython:3
. Reason: This is done to reduce the size of the docker image and to optimize the initial docker image build time byVisual Studio Code
.Ran multiple consecutive
RUN
commands in a single intermediate container Reason: In order to further optimize Dockerfile by reducing the number of Docker layers and for faster builds and lighter containers.Removed the below layer as
WORKDIR
does that job for us.Results:
Visual Studio Code
~330 MB
Issue
Fixes #4
Tested locally through
vs code