14 lines
247 B
Docker
14 lines
247 B
Docker
FROM node:lts-alpine
|
|
|
|
WORKDIR /home/node/app
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
|
|
EXPOSE 3000
|
|
|
|
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
|
CMD wget --quiet --tries=1 --spider http://localhost:3000 || exit 1
|