Skip to content

Commit

Permalink
Print HTTP server version during Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
SaschaSchwarze0 committed Apr 7, 2020
1 parent 3b26329 commit e328eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion normal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions normal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit e328eab

Please sign in to comment.