fixed tests
Python Code Quality / python-code-quality (push) Successful in 9s
Python Test / python-test (push) Successful in 12s

This commit is contained in:
Brian Bjarke Jensen
2025-11-04 21:50:58 +01:00
parent 54f658d093
commit 298fb192de
7 changed files with 346 additions and 15 deletions
+12 -2
View File
@@ -6,7 +6,8 @@ ENV PYTHONUNBUFFERED=1 \
PYTHONDONTWRITEBYTECODE=1 \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
UV_PROJECT_ENVIRONMENT=/app/.venv
UV_PROJECT_ENVIRONMENT=/app/.venv \
ENVIRONMENT=production
# Set working directory
WORKDIR /app
@@ -15,7 +16,7 @@ WORKDIR /app
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
# Copy dependency files
COPY pyproject.toml ./
COPY pyproject.toml README.md ./
# Install Python dependencies
RUN uv sync --no-dev
@@ -26,6 +27,15 @@ ENV PATH="/app/.venv/bin:$PATH"
# Copy application code
COPY src/ ./src/
# Add healthcheck
HEALTHCHECK \
--interval=30s \
--timeout=30s \
--start-period=5s \
--retries=3 \
CMD python -c "import urllib.request; \
urllib.request.urlopen('http://localhost:8000/health', timeout=10)"
# Expose port
EXPOSE 8000