Skip to content

Commit

Permalink
update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BobH233 committed May 17, 2024
1 parent 88e4a07 commit 3dfabbf
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
__pycache__/
output/
old/
*.zip
*.exe
build/
dist/
*.spec
whisper_models/
release_*/
*.json
.idea
.DS_Store
24 changes: 24 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
FROM python:3.8-slim

WORKDIR /app

# 创建新的sources.list
RUN echo "deb http://mirrors.ustc.edu.cn/debian/ buster main contrib non-free" > /etc/apt/sources.list && \
echo "deb http://mirrors.ustc.edu.cn/debian/ buster-updates main contrib non-free" >> /etc/apt/sources.list && \
echo "deb http://mirrors.ustc.edu.cn/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list


RUN apt-get update && \
apt-get install -y ffmpeg && \
rm -rf /var/lib/apt/lists/*

COPY . /app


RUN pip install Flask requests

EXPOSE 5001

VOLUME /app/output

CMD ["python", "webui_interface.py"]
2 changes: 1 addition & 1 deletion webui_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ def static_files(path):
if __name__ == '__main__':
t = threading.Thread(target=execute_tasks)
t.start()
app.run(debug=False, use_reloader=False, port=5000)
app.run(debug=False,host='0.0.0.0', use_reloader=False, port=5001)

0 comments on commit 3dfabbf

Please sign in to comment.