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

Create a Dockerfile #8

Closed
gaurav-nelson opened this issue Sep 25, 2023 · 4 comments · Fixed by #23
Closed

Create a Dockerfile #8

gaurav-nelson opened this issue Sep 25, 2023 · 4 comments · Fixed by #23
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest

Comments

@gaurav-nelson
Copy link
Contributor

Create a Dockerfile to run Linkspector in a Docker image.

@gaurav-nelson gaurav-nelson added enhancement New feature or request good first issue Good for newcomers hacktoberfest labels Sep 25, 2023
@dotarjun
Copy link

I'd like to give this a shot

@gaurav-nelson
Copy link
Contributor Author

Thank you @dotarjun

I was testing with the following Dockerfile, feel free to innovate:

FROM alpine

RUN apk add --update --no-cache \
      git \
      chromium \
      nss \
      freetype \
      harfbuzz \
      ca-certificates \
      ttf-freefont \
      nodejs \
      curl

ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV PNPM_HOME=/usr/local/bin

RUN curl -L https://unpkg.com/@pnpm/self-installer | node
RUN pnpm i -g puppeteer @umbrelladocs/linkspector

RUN addgroup -S pptruser && adduser -S -G pptruser pptruser \
    && mkdir -p /home/pptruser/Downloads /app \
    && chown -R pptruser:pptruser /home/pptruser \
    && chown -R pptruser:pptruser /app

USER pptruser

@dotarjun
Copy link

hey, pls assign me first

@gaurav-nelson
Copy link
Contributor Author

#11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers hacktoberfest
Projects
Development

Successfully merging a pull request may close this issue.

2 participants