Update Dockerfile
This commit is contained in:
parent
76e2455889
commit
15eb1ea46b
@ -15,7 +15,7 @@ RUN yarn build
|
|||||||
|
|
||||||
FROM node:20-alpine AS runner
|
FROM node:20-alpine AS runner
|
||||||
|
|
||||||
RUN apk add --no-cache curl
|
RUN apk add --no-cache curl iproute2
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -32,6 +32,8 @@ COPY --from=builder /app/.next/static ./.next/static
|
|||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
|
RUN ss -tuln
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=5 \
|
||||||
CMD curl -f http://localhost:3000 || exit 1
|
CMD curl -f http://localhost:3000 || exit 1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user