Dockerfile.tbase 617 字节
Newer Older
H
hzcheng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# Parent image
FROM ubuntu

# Set work directory
WORKDIR /app

# Copy executable file to work directory
COPY ./bin/tdengine .

# Copy configuration file to /etc/taos
COPY ./cfg/tdengine.cfg /etc/tdengine/

# Volume to communicate with host machine
#       config file       history file
VOLUME ["/etc/tdengine/", "/root"]

# Command to run
ENTRYPOINT ["/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