diff --git a/Dockerfile.local b/Dockerfile.local index feb0506..27e2296 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -13,15 +13,23 @@ WORKDIR /app # Copy pyproject.toml COPY pyproject.toml uv.lock ./ -# Copy project -COPY . . - # Install system dependencies and uv RUN apt-get update && apt-get install -y \ build-essential \ curl \ + wget \ + gnupg \ + chromium \ + chromium-driver \ + gcc \ + nodejs \ + npm \ + gettext \ && rm -rf /var/lib/apt/lists/* +# Copy project +COPY . . + COPY --from=uv /usr/local/bin/uv /usr/local/bin/uv # Install Python dependencies RUN uv sync --no-dev diff --git a/docker-compose.yml b/docker-compose.yml index f252e59..0546222 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,6 +22,22 @@ services: - redis networks: - app-network + node: + build: + context: . + dockerfile: Dockerfile.local + command: > + sh -c "python manage.py tailwind start" + volumes: + - .:/app + environment: + - DJANGO_SETTINGS_MODULE=core.settings + - CELERY_BROKER_URL=redis://redis:6379/0 + - CELERY_RESULT_BACKEND=redis://redis:6379/0 + depends_on: + - redis + networks: + - app-network celery_worker: build: diff --git a/links/templates/links/page_list.html b/links/templates/links/page_list.html index bf1dd22..ee1c333 100644 --- a/links/templates/links/page_list.html +++ b/links/templates/links/page_list.html @@ -16,43 +16,35 @@ {% for page in pages %}
  • - -
    + +
    -
    - +
    - -
    -

    - {{ page.title|default:"Untitled" }} -

    - + - -
    {% if page.process_status == 'completed' %} @@ -65,7 +57,10 @@ {% elif page.process_status == 'failed' %} - {% trans "Failed" %}{% if page.retry_count > 0 %} ({{ page.retry_count }}/3){% endif %} + {% trans "Failed" %} + {% if page.retry_count > 0 %} + ({{ page.retry_count }}/3) + {% endif %} {% else %} @@ -117,8 +112,7 @@