Skip to content

Instantly share code, notes, and snippets.

@wshihadeh
Created April 24, 2020 20:17
Show Gist options
  • Save wshihadeh/d037db365358100d3ed369f13341fe37 to your computer and use it in GitHub Desktop.
Save wshihadeh/d037db365358100d3ed369f13341fe37 to your computer and use it in GitHub Desktop.
Dockerfile
FROM alpine:3.10 as alpine
RUN apk --no-cache --no-progress add \
libcurl \
ruby \
ruby-bigdecimal \
ruby-etc \
ruby-ffi \
ruby-json \
ruby-nokogiri
RUN gem install html-proofer --version 3.13.0 --no-document -- --use-system-libraries
# install Node JS
RUN apk --no-cache --no-progress add \
git \
nodejs \
npm
# To handle 'not get uid/gid'
RUN npm config set unsafe-perm true
RUN npm install --global \
[email protected] \
[email protected]
# Finally the shell tools we need for later
# tini helps to terminate properly all the parallelized tasks when sending CTRL-C
RUN apk --no-cache --no-progress add \
ca-certificates \
curl \
tini
COPY ./scripts/lint.sh /lint.sh
WORKDIR /app
VOLUME ["/tmp","/app"]
ENTRYPOINT ["/sbin/tini","-g","sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment