What are Docker files and how can I change the Artifactory’s Docker file?

Yonatan Brand
2020-02-17 13:28

Docker files are a "text" document that can contain all the commands a user could call on the command line to assemble Docker image. 

In some cases, users find the need to edit the default image for Artifactory. 
For example: 

Add additional environment variables or commands to be performed when creating the container. 

In order to be able to view the Artifactory's docker file follow the below steps: 
1. Get inside the Artifactory container: 
$ docker exec -it [IMAGE_NAME] bash 

2. Print the Artifactory docker file: 
$ cat /docker/artifactory-pro/Dockerfile.artifactory