This repository has been archived on 2021-06-02. You can view files and clone it, but cannot push or open issues or pull requests.
RealtimeDB-OLD/Dockerfile

26 lines
930 B
Docker
Raw Normal View History

2020-10-28 00:00:39 +00:00
FROM node:14
2019-10-01 15:45:38 +00:00
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
# for https
# RUN apt-get update && apt-get install -yyq ca-certificates libappindicator1 libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 gconf-service lsb-release wget xdg-utils fonts-liberation
2019-10-01 15:45:38 +00:00
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
2020-10-28 00:00:39 +00:00
RUN npm config set registry https://npm.hibas123.de/
ENV NODE_ENV=production
COPY ["package.json", "package-lock.json", "/usr/src/app/"]
2019-10-01 15:45:38 +00:00
RUN npm install
2019-10-09 23:26:13 +00:00
COPY lib/ /usr/src/app/lib
COPY views/ /usr/src/app/views
2019-10-01 15:45:38 +00:00
VOLUME [ "/usr/src/app/databases", "/usr/src/app/logs" ]
EXPOSE 5000/tcp
2020-10-28 00:00:39 +00:00
CMD ["npm", "run", "start"]