Docker File:

ARTIFACTORY: Docker build + Gitlab integration with Artifactory and scan with JFrog Xray as part of a JFrog project

AuthorFullName__c
Swarnendu Kayal
articleNumber
000005368
ft:sourceType
Salesforce
FirstPublishedDate
2022-08-10T13:53:41Z
lastModifiedDate
2022-08-10
VersionNumber
5
To do a docker build, we need to have a docker file created. The docker file contents is as below -
FROM nginx:alpine
RUN rm /etc/nginx/conf.d/*
RUN echo "files are deleted"
COPY ./public/helloworld.conf /etc/nginx/conf.d/
COPY ./public/index.html /usr/share/nginx/html/
COPY ./public/arti-error.txt /usr/share/nginx/html/

The docker file is actually performing the below items -
  1. Pull an Nginx image
  2. Removing all the contents of the folder “/etc/nginx/conf.d/”
  3. Putting a message that all the files are deleted
  4. Copying all the files that we have uploaded to the GitLab repository, copy it to a specific file location.