You've already forked healthcheck
All checks were successful
Build and push Docker image / build (push) Successful in 40s
15 lines
297 B
Docker
15 lines
297 B
Docker
FROM node:20-alpine
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package*.json ./
|
|
RUN npm install --production
|
|
RUN apk add --no-cache curl
|
|
|
|
COPY server.js .
|
|
|
|
EXPOSE 8080
|
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 CMD curl -f http://localhost:8080/ || exit 1
|
|
|
|
CMD [ "node", "server.js" ] |