Dockerfile 411 B

12345678910111213141516171819
  1. FROM python:3.11-slim
  2. RUN apt-get update && apt-get install -y --no-install-recommends \
  3. libjpeg-dev \
  4. zlib1g-dev \
  5. fonts-dejavu-core \
  6. && rm -rf /var/lib/apt/lists/*
  7. WORKDIR /app
  8. COPY requirements.txt ./
  9. RUN pip install --no-cache-dir -r requirements.txt
  10. COPY simulator/ ./simulator/
  11. # Create config directory
  12. RUN mkdir -p /etc/timelapse
  13. ENTRYPOINT ["python3", "-u", "simulator/main.py"]