diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-12-20 15:14:15 +0000 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-12-20 15:14:15 +0000 |
| commit | f5025a42636f75a4e1c519f97ad62920c30278ba (patch) | |
| tree | 8a1216c52609c7ce053920c766b8027b1e7e04cb /Dockerfile | |
| parent | 3f91a121b33151cd466de930d0e68bdf87f4d19e (diff) | |
Dockerise application
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6ccd424 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:alpine + +WORKDIR /srv/node/app + +COPY package*.json ./ + +RUN npm i -g typescript\ + && npm ci --only=production + +COPY . . + +RUN tsc + +COPY --chown=node:node . . + +EXPOSE 3000 + +USER node + +CMD [ "node", "build/index.js" ] |
