#6 Dockerfile added, documentation updated, port changed from 80->8080
parent
adfa57bb14
commit
da115e6a36
@ -0,0 +1,5 @@
|
|||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
Dockerfile
|
||||||
|
.dockerignore
|
||||||
|
.gitignore
|
@ -0,0 +1,9 @@
|
|||||||
|
FROM node:12.6.0-alpine
|
||||||
|
RUN apk add --no-cache paxctl && paxctl -cm `which node`
|
||||||
|
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
|
||||||
|
WORKDIR /home/node/app
|
||||||
|
COPY --chown=node:node . .
|
||||||
|
USER node
|
||||||
|
RUN npm install
|
||||||
|
EXPOSE 80
|
||||||
|
CMD [ "node", "index.js" ]
|
Loading…
Reference in new issue