# linebot dockerfile ``` FROM centos:7 WORKDIR ~ RUN yum -y install wget gcc openssl-devel bzip2-devel libffi-devel zlib-devel git xz-devel unzip vim make ## project RUN git clone https://github.com/tim50687/invoicehero.git ## python3.9.6 RUN wget https://www.python.org/ftp/python/3.9.6/Python-3.9.6.tgz &&\ tar xvf Python-3.9.6.tgz &&\ wget https://www.sqlite.org/2019/sqlite-autoconf-3280000.tar.gz &&\ tar zxvf sqlite-autoconf-3280000.tar.gz &&\ cd sqlite-autoconf-3280000/ &&\ ./configure &&\ make &&\ make install RUN cd Python-3.9.6/ &&\ LD_RUN_PATH=/usr/local/lib ./configure &&\ LD_RUN_PATH=/usr/local/lib make &&\ LD_RUN_PATH=/usr/local/lib make altinstall ## pip install RUN pip3.9 install django line-bot-sdk matplotlib pandas numpy python-dateutil apscheduler gspread --upgrade oauth2client --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib beautifulsoup4 regex selenium ## ngrok RUN wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip &&\ unzip ngrok-stable-linux-amd64.zip ## pysqlite3 RUN pip3.9 install pysqlite3 &&\ pip3.9 install pysqlite3-binary ## google chrome RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm &&\ yum install -y ./google-chrome-stable_current_*.rpm CMD ["/bin/bash"] ```