mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 23:23:55 +08:00
18 lines
439 B
Docker
18 lines
439 B
Docker
FROM python:3.10-slim
|
|
|
|
RUN apt-get update \
|
|
&& apt-get upgrade -y \
|
|
&& apt-get install -y libopus-dev ffmpeg \
|
|
&& apt-get clean \
|
|
&& apt-get autoremove -y
|
|
|
|
# Set working directory
|
|
WORKDIR /opt/xiaozhi-es32-server
|
|
|
|
COPY . /opt/xiaozhi-es32-server
|
|
|
|
# Clean unnecessary files to reduce image size
|
|
RUN pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/
|
|
|
|
## Start the application
|
|
CMD ["python", "app.py"] |