typo
Build and Push Docker Images / build-and-push (push) Successful in 1m11s

This commit is contained in:
2025-07-02 09:55:13 +02:00
parent 16f018018f
commit ef362ad23a
5 changed files with 0 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
FROM python:3.9-slim
# Install required system dependencies
RUN apt-get update && apt-get install -y \
curl \
docker.io \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the healthcheck script
COPY healthcheck.py .
# Set environment variables
ENV PYTHONUNBUFFERED=1
ENV BASE_URL="https://puppeteer.workwithkora.com"
ENV TEST_URL="https://www.google.com"
ENV API_KEY="Q7Sd#hhFkyHy*T"
ENV TARGET_CONTAINER="puppeteer-api"
ENV CHECK_INTERVAL=60
# Create a non-root user
RUN useradd -m healthcheck && chown -R healthcheck:healthcheck /app
USER healthcheck
# Run the healthcheck script
CMD ["python", "healthcheck.py"]