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