Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linkcheck: command not found #130

Open
meerasebastian21 opened this issue Sep 7, 2023 · 0 comments
Open

linkcheck: command not found #130

meerasebastian21 opened this issue Sep 7, 2023 · 0 comments

Comments

@meerasebastian21
Copy link

meerasebastian21 commented Sep 7, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant