kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch10/docker-images/web-ping/Dockerfile

17 lines
309 B
Docker

FROM node:16.13.1-alpine3.14 AS builder
WORKDIR /src
COPY src/package.json .
RUN npm install
FROM node:16.13.1-alpine3.14
CMD ["node", "/app/app.js"]
ENV TARGET="blog.sixeyed.com" \
METHOD="HEAD" \
INTERVAL="3000"
WORKDIR /app
COPY --from=builder /src/node_modules/ /app/node_modules/
COPY src/ .