# Parent imageFROM ubuntu# Set work directoryWORKDIR /app# Copy executable file to work directoryCOPY ./bin/tdengine .# Copy configuration file to /etc/taosCOPY ./cfg/tdengine.cfg /etc/tdengine/# Volume to communicate with host machine# config file history fileVOLUME ["/etc/tdengine/", "/root"]# Command to runENTRYPOINT ["/app/tdengine"]# To build the image# docker build -t taos_img -f Dockerfile.taos .# To run the image# docker run -it --rm \# --mount type=bind,source=/etc/taos/,target=/etc/taos/ \# --mount type=bind,source="$HOME",target=/root \# taos_img -p