dockerized

This commit is contained in:
2019-01-03 19:22:49 +01:00
parent 9821d412ec
commit 3c52ec4691
9 changed files with 31 additions and 561 deletions

25
Dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM node:10-jessie
MAINTAINER Wolfgang Hottgenroth <wolfgang.hottgenroth@icloud.com>
ARG APP_DIR="/opt/app"
EXPOSE 4200
RUN mkdir -p $APP_DIR
WORKDIR $APP_DIR
COPY files files/
COPY docroot docroot/
COPY src src/
COPY homepage.conf package.json package-lock.json tsconfig.json ./
RUN \
npm install && \
node_modules/typescript/bin/tsc -p ./
CMD [ "node", "dist/main.js" ]