Switching to ws instead of socket.io and implementing basic authentication
This commit is contained in:
18
Dockerfile
18
Dockerfile
@ -1,26 +1,16 @@
|
||||
FROM node:12
|
||||
|
||||
|
||||
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
|
||||
|
||||
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
# for https
|
||||
RUN apt-get install -yyq ca-certificates
|
||||
# install libraries
|
||||
RUN apt-get install -yyq 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
|
||||
# tools
|
||||
RUN apt-get install -yyq gconf-service lsb-release wget xdg-utils
|
||||
# and fonts
|
||||
RUN apt-get install -yyq fonts-liberation
|
||||
# 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
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package.json /usr/src/app
|
||||
COPY package-lock.json /usr/src/app
|
||||
ENV NODE_ENV=production
|
||||
|
||||
COPY ["package.json", "package-lock.json", "/usr/src/app/"]
|
||||
|
||||
RUN npm install
|
||||
COPY lib/ /usr/src/app/lib
|
||||
|
Reference in New Issue
Block a user