FROM  eu.gcr.io/vnc-development/docker-vnc-base:latest

RUN apt-get update
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN apt-get install -y nodejs
RUN apt-get install -y build-essential
RUN npm install -g serve
RUN npm install pm2 -g

RUN apt-get install -y vnctalk-hybrid-authenticator2
COPY config.js /usr/share/vnctalk-hybrid-authenticator2/config/vnc-hybrid-authenticator.js

#RUN npm install /usr/share/vnctalk-hybrid-authenticator2/app

ENTRYPOINT ["pm2-runtime", "/usr/share/vnctalk-hybrid-authenticator2/app/app.js"]
