filiph / linkcheck

Fast link checker
https://pub.dartlang.org/packages/linkcheck
MIT License
403 stars 51 forks source link

linkcheck: command not found #130

Open meerasebastian21 opened 1 year ago

meerasebastian21 commented 1 year ago

Hi, I'm attempting to create a Docker image and have installed Linkcheck. However, whenever I try to run the command, it says 'linkcheck: not found.' Can you please provide some assistance?

FROM ubuntu:22.04
USER root

RUN apt-get update && \
    apt-get install -y --no-install-recommends curl ca-certificates locales tree wget apt-transport-https && \
    curl -fsSL https://deb.nodesource.com/setup_14.x | bash - && \
    apt-get install -y nodejs  && \
    wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/dart.gpg && \
    echo 'deb [signed-by=/usr/share/keyrings/dart.gpg arch=amd64] https://storage.googleapis.com/download.dartlang.org/linux/debian stable main' | tee /etc/apt/sources.list.d/dart_stable.list

RUN apt-get update && \
    apt-get install dart

RUN export PATH="$PATH:/usr/lib/dart/bin"
RUN echo 'export PATH="$PATH:/usr/lib/dart/bin"' >> ~/.profile

RUN dart pub global activate linkcheck
RUN export PATH="$PATH":"~/.pub-cache/bin"
RUN . ~/.profile
RUN linkcheck -h

Error log

[2023-09-07T16:23:27.539Z] #12 [9/9] RUN linkcheck -h
[2023-09-07T16:23:27.796Z] #12 0.337 /bin/sh: 1: linkcheck: not found