FROM node:12 LABEL maintainer="Fabian Stamm " RUN mkdir -p /usr/src/app WORKDIR /usr/src/app RUN npm config set registry https://npm.hibas123.de COPY ["package.json", "package-lock.json", "tsconfig.json", "/usr/src/app/"] ENV NODE_ENV=production RUN npm install COPY lib/ /usr/src/app/lib COPY views/out /usr/src/app/views/out/ COPY views_repo/build /usr/src/app/views_repo/build VOLUME [ "/usr/src/app/logs", "/usr/src/app/keys"] EXPOSE 3004/tcp CMD ["npm", "run", "start"]