All checks were successful
Build and Push Docker Image / build (push) Successful in 1m27s
18 lines
466 B
Docker
18 lines
466 B
Docker
FROM python:3.13.1-slim-bookworm
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt
|
|
|
|
# Install curl
|
|
RUN apt-get update && apt-get install -y curl
|
|
|
|
# Copy the application
|
|
COPY main.py /app
|
|
COPY utils/ /app/utils
|
|
WORKDIR /app
|
|
|
|
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 CMD curl -f http://localhost/heartbeat || exit 1
|
|
|
|
# Run the application
|
|
CMD ["python", "main.py"] |