fix: update pa11y version to 4.3.1 and clean up Dockerfile comments
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m5s

This commit is contained in:
2025-09-11 12:20:40 -05:00
parent b038f20172
commit 3e9aabac52

View File

@@ -44,13 +44,15 @@ RUN apt-get update && apt-get install -y \
WORKDIR /app WORKDIR /app
# Clone pa11y-dashboard repository # Clone pa11y-dashboard repository
ARG PA11Y_VERSION=4.2.0 ARG PA11Y_VERSION=4.3.1
RUN git clone https://github.com/pa11y/pa11y-dashboard.git . && \ RUN git clone https://github.com/pa11y/pa11y-dashboard.git . && \
git checkout ${PA11Y_VERSION} git checkout ${PA11Y_VERSION}
# Install dependencies and build # Install dependencies and build
RUN npm install && \ RUN npm install
make less && make uglify # # Install dependencies and build
# RUN npm install && \
# make less && make uglify
# Production stage # Production stage
FROM node:18-bullseye-slim FROM node:18-bullseye-slim
@@ -92,8 +94,8 @@ RUN apt-get update && apt-get install -y \
wget \ wget \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Create app user # # Create app user
RUN groupadd -r pa11y && useradd -r -g pa11y pa11y # RUN groupadd -r pa11y && useradd -r -g pa11y pa11y
# Set working directory # Set working directory
WORKDIR /app WORKDIR /app
@@ -107,9 +109,9 @@ COPY --chown=pa11y:pa11y production.json /app/config/production.json
# # Switch to non-root user # # Switch to non-root user
# USER pa11y # USER pa11y
# Expose ports # # Expose ports
EXPOSE 4000 # EXPOSE 4000
EXPOSE 3000 # EXPOSE 3000
# Health check # Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \