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

WORKDIR /root

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

9 10 11 12
COPY ${pkgFile} /root/
RUN tar -zxf ${pkgFile}
WORKDIR /root/${dirName}/
RUN /bin/bash install.sh -e no
13

14 15
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 已提交
16 17 18 19
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 已提交
20

21 22 23 24
EXPOSE 6030-6049
EXPOSE 6030-6039/udp
COPY ./bin/* /usr/bin/
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
25
CMD ["taosd"]
26
VOLUME [ "/var/lib/taos", "/var/log/taos", "/corefile" ]