Docker Image Implementation
Dockerfile
Best practices
Health check and status
Complete example
FROM node:16-alpine
# standard working directory
WORKDIR /opt/orbs
# install your app
COPY package*.json ./
RUN npm install
COPY dist ./dist
CMD [ "npm", "start" ]
# install healthcheck based on status.json
COPY ./healthcheck.sh ./
COPY ./healthcheck.js ./
HEALTHCHECK CMD /opt/orbs/healthcheck.sh
# install entry point executable
COPY ./entrypoint.sh /opt/orbs/serviceLast updated