Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
BillChirico authored Nov 6, 2023
1 parent 04e4382 commit 55f135d
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,12 @@ LABEL name="Docusaurus on docker latest-stable" \
on Node 20.x, lts-alpine" \
description="Volvox.Apollo Docs \
on Node 20.x, lts-alpine"

# add curl for healthcheck
RUN apk add --no-cache --update \
curl \
libc6-compat

# run as our node user from base image
# we delete the dockerfiles we don't need
# this leaves us with a default v1 docusarus install
# we can mount our own into the container

USER node
RUN npm install --global docusaurus-init
RUN npm install

EXPOSE 5001/tcp
USER node
WORKDIR /home/node/docs

CMD ["sh", "-l", "-c", "npm run serve"]
HEALTHCHECK CMD curl -f -L http://localhost:5001/ || exit 1

0 comments on commit 55f135d

Please sign in to comment.