FROM python:3.12 WORKDIR /app COPY . . RUN chmod +x wait-for-elasticsearch.sh RUN pip install --no-cache-dir -r requirements.txt CMD ["bash", "-c", "./wait-for-elasticsearch.sh && python server.py"]