Dockerfile 897 字节
Newer Older
1
FROM ubuntu:18.04
2 3 4

WORKDIR /root

5 6
ARG pkgFile
ARG dirName
7
ARG cpuType
M
Mohit Saxena 已提交
8
RUN echo ${pkgFile} && echo ${dirName}
9

10 11
COPY ${pkgFile} /root/
RUN tar -zxf ${pkgFile}
12 13 14 15
WORKDIR /root/
RUN cd /root/${dirName}/ && /bin/bash install.sh -e no && cd /root
RUN rm /root/${pkgFile}
RUN rm -rf /root/${dirName}
16

17 18
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get clean && apt-get update && apt-get install -y locales tzdata netcat && locale-gen en_US.UTF-8
M
Mohit Saxena 已提交
19 20 21 22
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib" \
    LC_CTYPE=en_US.UTF-8 \
    LANG=en_US.UTF-8 \
    LC_ALL=en_US.UTF-8
R
change  
root 已提交
23

24
COPY ./bin/* /usr/bin/
25 26 27 28 29 30

ENV TINI_VERSION v0.19.0
RUN bash -c 'echo -e "Downloading tini-${cpuType} ..."'
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${cpuType} /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--", "/usr/bin/entrypoint.sh"]
31
CMD ["taosd"]
32
VOLUME [ "/var/lib/taos", "/var/log/taos", "/corefile" ]