Hello World Docker デモンストレーションの Dockerfile.debug ファイル

本トピックには、Hello World Docker デモンストレーションの Dockerfile.debug ファイルのリストおよび説明が含まれています。Dockerfile 全体をリストし、Dockerfile に含まれる各コマンドの説明をその後の表にまとめてあります。Dockerfile のリストに示してある行番号は、読みやすくするために追加したものです。付属の 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:

説明
005 - 006 Specifies the base image to use, which is the Visual COBOL base image.
008 - 011 docker build コマンドで渡すビルド引数を定義します。
  • 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 実行時にコンテナーがリッスンするネットワーク ポートを指定します。