2019-12-16 13:02:51 +00:00
|
|
|
FROM node:12
|
|
|
|
|
|
|
|
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
|
|
|
|
|
|
|
|
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2020-10-28 04:11:47 +00:00
|
|
|
RUN npm config set registry https://npm.hibas123.de
|
|
|
|
|
2019-12-16 13:02:51 +00:00
|
|
|
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/
|
2020-03-09 18:17:23 +00:00
|
|
|
COPY views_repo/build /usr/src/app/views_repo/build
|
2019-12-16 13:02:51 +00:00
|
|
|
|
2019-12-16 13:41:20 +00:00
|
|
|
VOLUME [ "/usr/src/app/logs", "/usr/src/app/keys"]
|
2019-12-16 13:02:51 +00:00
|
|
|
|
|
|
|
EXPOSE 3004/tcp
|
|
|
|
|
2020-10-28 04:11:47 +00:00
|
|
|
CMD ["npm", "run", "start"]
|