PairDrop/Dockerfile
Kaindl Network 0548a17cee
Change Baseimage to Distroless Node Image
[POC] Reduce attack surface as there is no package manager and reduce the image size further
2023-04-07 14:36:31 +00:00

14 lines
259 B
Docker

FROM gcr.io/distroless/nodejs:16
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