20 lines
480 B
Docker
20 lines
480 B
Docker
FROM python:3.11-slim
|
|
|
|
# System dependencies
|
|
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources && \
|
|
apt-get update && apt-get install -y --no-install-recommends \
|
|
git \
|
|
libgomp1 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Clone project
|
|
RUN git clone https://gitee.com/zhe-ovo/iot-dboard.git /app
|
|
WORKDIR /app
|
|
|
|
# Install Python dependencies
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
EXPOSE 5000
|
|
|
|
CMD ["python", "start.py"]
|