mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-21 22:53:56 +08:00
21 lines
540 B
Docker
21 lines
540 B
Docker
FROM python:3.9.21-slim
|
|
|
|
ENV LC_ALL=zh_CN.UTF-8 \
|
|
LANG=zh_CN.UTF-8 \
|
|
LANGUAGE=zh_CN.UTF-8
|
|
|
|
# Replace single RUN commands with a single RUN command to reduce layers
|
|
RUN apt-get update \
|
|
&& apt-get upgrade -y \
|
|
&& apt-get install -y libgomp1 libgl1-mesa-glx libglib2.0-0 \
|
|
&& apt-get clean \
|
|
&& apt-get autoremove -y
|
|
|
|
# Set working directory
|
|
WORKDIR /opt/xiaozhi-es32-server
|
|
|
|
# Clean unnecessary files to reduce image size
|
|
RUN pip install -r requirements.txt
|
|
#
|
|
## Start the application
|
|
CMD ["python", "Application.py"] |