Browse Source

fixed Dockerfile HEALTHCHECK syntax (#1686)

HEALTHCHECK options should always come before the CMD instruction
pull/1696/head
Denis Kazimirov 6 months ago
committed by GitHub
parent
commit
e3b880d039
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      Dockerfile
  2. 2
      Dockerfile.dev

2
Dockerfile

@ -26,7 +26,7 @@ RUN find ./node_modules/@libsql -mindepth 1 -maxdepth 1 -type l ! -name 'linux*'
FROM docker.io/library/node:lts-alpine FROM docker.io/library/node:lts-alpine
WORKDIR /app WORKDIR /app
HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3 HEALTHCHECK --interval=1m --timeout=5s --retries=3 CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1"
# Copy build # Copy build
COPY --from=build /app/.output /app COPY --from=build /app/.output /app

2
Dockerfile.dev

@ -6,7 +6,7 @@ RUN npm install --global corepack@latest
# Install pnpm # Install pnpm
RUN corepack enable pnpm RUN corepack enable pnpm
HEALTHCHECK CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1" --interval=1m --timeout=5s --retries=3 HEALTHCHECK --interval=1m --timeout=5s --retries=3 CMD /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1"
# Install Linux packages # Install Linux packages
RUN apk add --no-cache \ RUN apk add --no-cache \

Loading…
Cancel
Save