Dockerfile 400 Bytes
FROM python:3.8-slim
WORKDIR /app
RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
COPY . /app/
RUN pip install --no-cache-dir -r requirements.txt
ENV DEPLOY_ENV=test
ENV PYTHONUNBUFFERED=1
RUN mkdir -p /app/reports
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD python -c "import sys; sys.exit(0)" || exit 1
CMD ["python3", "api_test.py"]