homepage/Dockerfile

26 lines
405 B
Docker
Raw Permalink Normal View History

2019-01-03 19:22:49 +01:00
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 ./
2019-02-16 18:36:51 +01:00
COPY VERSION .
2019-01-03 19:22:49 +01:00
RUN \
npm install && \
node_modules/typescript/bin/tsc -p ./
CMD [ "node", "dist/main.js" ]