The Dockerfile.debug File in the Hello World Docker Demonstration

This topic lists and describes the Dockerfile.debug file from the Hello World Docker demonstration. The Dockerfile is listed in its entirety and a following table describes the various Dockerfile commands. The line numbers in the listings of the Dockerfile have been added to aid readability. They are not present in the supplied Dockerfile.

001  # Copyright (C) Micro Focus 2018. All rights reserved. 
002  # This sample code is supplied for demonstration purposes only
003  # on an "as is" basis and is for use at your own risk. 
004  
005  ARG DTAG
006  FROM microfocus/vcbuildtools-build:${DTAG}
007  
008  ARG PLATFORM
009  
010  # optional arguments
011  ARG APPDIR=c:\\app
012  
013  # set the start directory
014  WORKDIR "${APPDIR}"
015  
016  EXPOSE 6100

The commands on the lines in this Dockerfile are as follows:

Lines Description
005 - 006 Specifies the base image to use, which is the Enterprise Developer base image.
008 - 011 Define build arguments passed by the docker build command:
  • ESPLATFORM. Either x86 or x64 indicating whether the CICS application will be running in a 32-bit or 64-bit environment respectively.
  • APPDIR. Specifies the folder in the image's filesystem that the CICS application is copied into. c:\app is used if this argument is not specified.
014 Sets the Docker working directory to be the folder for the Hello World application in the image's filesystem.
016 Specifies the network ports that the container will listen on at run-time.