From e328eab7ba4a82b78ebc7f905fec6a7b668974e2 Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Tue, 7 Apr 2020 08:49:36 +0200 Subject: [PATCH] Print HTTP server version during Docker build --- normal/Dockerfile | 2 +- normal/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/normal/Dockerfile b/normal/Dockerfile index f617f40..b16203f 100644 --- a/normal/Dockerfile +++ b/normal/Dockerfile @@ -3,7 +3,7 @@ FROM node:12 COPY . /app WORKDIR /app -RUN npm install +RUN npm install && npm run print-http-server-version EXPOSE 8080 diff --git a/normal/package.json b/normal/package.json index d32af65..7824a9e 100644 --- a/normal/package.json +++ b/normal/package.json @@ -3,6 +3,7 @@ "version": "0.0.1", "description": "Simple NPM hello world", "scripts": { + "print-http-server-version": "http-server -v", "start": "http-server" }, "repository": {