homepage/Dockerfile

26 lines
405 B
Docker

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 ./
COPY VERSION .
RUN \
npm install && \
node_modules/typescript/bin/tsc -p ./
CMD [ "node", "dist/main.js" ]