Skip to content

Commit

Permalink
Example here
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Nov 28, 2023
1 parent 8727f77 commit ed042e5
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dotnpm-created/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:21-alpine

RUN mkdir -p /app/test && chown -R node:node /app && npm install -g npm@latest

USER node

WORKDIR /app

COPY package.json ./

WORKDIR /app/test

ENTRYPOINT ["npm", "--logs-max=0", "run", "test"]
11 changes: 11 additions & 0 deletions dotnpm-created/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "dotnpm-created",
"version": "1.0.0",
"description": "Test file",
"main": "index.js",
"scripts": {
"test": "echo \"test\""
},
"author": "",
"license": "ISC"
}

0 comments on commit ed042e5

Please sign in to comment.