- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.python
More file actions
Latest commit
21 lines (15 loc) · 511 Bytes
/
Copy pathDockerfile.python
File metadata and controls
21 lines (15 loc) · 511 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.7.8-slim-stretch
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib"
COPY inc/* /usr/include/
COPY driver/libtaos.so.2.0.0.0 /usr/lib/libtaos.so.1
COPY pip.conf /root/.pip/pip.conf
COPY python3 /build/
RUN cd /build/ && \
python setup.py install && \
echo "y" |cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
mkdir -p /etc/taos && \
mkdir -p /data/log/ && \
ln -s /usr/lib/libtaos.so.1 /usr/lib/libtaos.so && \
rm -rf /build
COPY taos.cfg /etc/taos
WORKDIR /app