Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM python:3.9-alpine

FROM python:3.9-slim

# 把檔案複製進去
COPY ./ /ChatGPT-Line-Bot
WORKDIR /ChatGPT-Line-Bot

RUN pip3 install -r requirements.txt
# 更新 pip 並裝好套件
RUN pip install --upgrade pip && \
pip install -r requirements.txt

CMD ["python3", "main.py"]
# 執行程式
CMD ["python", "main.py"]
12 changes: 5 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
line-bot-sdk==2.4.1
python-dotenv==0.21.1
Flask==2.2.2
opencc-python-reimplemented==0.1.4
beautifulsoup4==4.11.2
youtube-transcript-api==0.5.0
pymongo==4.3.3
Flask==2.0.0
Werkzeug==0.16.0
line-bot-sdk==2.4.2
openai==1.14.3
pymongo==3.12.3