Skip to content

Commit

Permalink
Update: fix package problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mawwalker committed Apr 5, 2024
1 parent 822e027 commit 3e186d9
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.10-bullseye
FROM python:3.11-bullseye

RUN apt-get update -y && apt-get install -y portaudio19-dev python3-pyaudio sox pulseaudio libsox-fmt-all ffmpeg wget libpcre3 libpcre3-dev libatlas-base-dev python3-dev && \
RUN apt-get update -y && apt-get install -y portaudio19-dev python3-pyaudio sox pulseaudio libsox-fmt-all ffmpeg wget libpcre3 libpcre3-dev libatlas-base-dev python3-dev build-essential libssl-dev ca-certificates libasound2 && \
echo "==> Clean up..." && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

WORKDIR /moss
COPY requirements.txt /moss
RUN pip install --no-cache-dir -r /moss/requirements.txt
RUN pip install --no-cache-dir -U pip && pip install --no-cache-dir -r /moss/requirements.txt
COPY . /moss
CMD ["python", "app.py"]
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ docker build -t moss:latest .
```
1. Run the Docker container:
```bash
docker run -itd --device /dev/snd -v ./:/moss --name moss moss:latest
# docker run -itd --device /dev/snd --name moss moss:latest
docker run -itd --device /dev/snd --name moss -v /etc/localtime:/etc/localtime:ro -v /etc/timezone:/etc/timezone:ro --restart unless-stopped moss:latest
```

## Basic Usage
Expand Down
6 changes: 4 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
azure_storage==0.37.0
edge_tts==6.1.10
azure-cognitiveservices-speech==1.36.0
edge-tts==6.1.10
langchain==0.1.14
langchain_community==0.0.31
langchain_core==0.1.40
langchainhub==0.1.15
langchain_openai==0.1.1
loguru==0.7.2
google-api-python-client==2.125.0
pyaudio==0.2.14
pydub==0.25.1
pytz==2024.1
Expand Down

0 comments on commit 3e186d9

Please sign in to comment.