Closed itsksaurabh closed 3 years ago
/set title: Duplicated copy line in Dockerfile
Happy for you to send a PR to remove the duplicated line. the ARGS can be changed to ENV if they are not used.
@alexellis Thanks for the review. I am removing that duplicated copy of the line from the Dockerfile with my PR. Before changing ARGS to ENV, I would like to discuss it in the slack channel. :)
Expected Behaviour
Current Behaviour
There are some areas of improvement in the current Dockerfile:
1. Repeats similar build steps ( layers ). It can be seen here.
2. Build Args are there but not used anywhere inside the Dockerfile which can be seen here.
Possible Solution
Possible solutions:
1. Remove extra similar layers as it is not required.
2. Use the build args inside the Dockerfile for dynamic builds. For example :
Steps to Reproduce (for bugs)
none
Context
Your Environment
Docker version
docker version
(e.g. Docker 17.0.05 ):Are you using Docker Swarm or Kubernetes (FaaS-netes)?
Operating System and version (e.g. Linux, Windows, MacOS):
Link to your project or a code example to reproduce issue: