dockerized
This commit is contained in:
25
Dockerfile
Normal file
25
Dockerfile
Normal 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" ]
|
||||
|
Reference in New Issue
Block a user