From 55f135db8975b135d09fea910ce6912addff28fd Mon Sep 17 00:00:00 2001 From: Bill Chirico Date: Mon, 6 Nov 2023 10:20:23 -0500 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index fced435..b74cc05 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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