This image is created for CodeGeek-specific internal applications. It's to be used by cg_theme_v1 projects in order to 'lock in' the node build packages used in these older projects. The image supports both amd64 and arm64 platforms.
This image is based on node 14. It installs all of the necessary packages and node packages to get the pa11y-dashboard running. The dashboard is setup to connect to a db container running mongo:4.4 on the same docker network on port 27017. The connection string is:
mongodb://db:27017
mkdir pa11y-dashboard
cd pa11y-dashboard
proj install --name pa11y-dashboard --type pa11y-dashboard
proj start
proj open
ARG IMAGE=node
ARG VERSION=14
FROM ${IMAGE}:${VERSION}
ARG NAME
RUN apt-get update && \
apt-get install -y libnss3 libgconf-2-4 ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils chromium
RUN useradd -ms /bin/bash pa11y
USER pa11y
WORKDIR /pa11y-dashboard
# Copy package.json and yarn.lock if it exists
COPY . /pa11y-dashboard/
ENV PATH="/node_modules/.bin:$PATH"
ENV PROJECTNAME=${NAME}
# Install the codegeek theme
RUN npm install
Content type
Image
Digest
sha256:9da0493b7…
Size
706.5 MB
Last updated
almost 3 years ago
docker pull codegeekdev/pa11y-dashboard