resume_page

Log | Files | Refs | README

Dockerfile (850B)


      1 FROM hadolint/hadolint:2.12.0-alpine AS hadolint
      2 FROM docker:28.0.4-cli AS docker
      3 FROM node:22-alpine
      4 
      5 # OS packages follow the Alpine security repositories.
      6 # hadolint ignore=DL3018
      7 RUN apk add --no-cache python3 py3-pip shellcheck \
      8     && python3 -m venv /opt/venv
      9 ENV PATH="/opt/venv/bin:/opt/lint/node_modules/.bin:${PATH}" \
     10     PYTHONDONTWRITEBYTECODE=1
     11 COPY --from=hadolint /bin/hadolint /usr/local/bin/hadolint
     12 COPY --from=docker /usr/local/bin/docker /usr/local/bin/docker
     13 COPY --from=docker /usr/local/libexec/docker/cli-plugins/docker-compose /usr/local/libexec/docker/cli-plugins/docker-compose
     14 WORKDIR /opt/lint
     15 COPY package.json package-lock.json ./
     16 RUN npm ci --ignore-scripts --no-audit --no-fund
     17 COPY requirements.txt ./
     18 RUN pip install --no-cache-dir -r requirements.txt
     19 WORKDIR /workspace
     20 ENTRYPOINT ["python3", "linting/run.py"]