obdfcascrape/Dockerfile.orig
Martin Donnelly be5d3eae07 init
2019-05-05 20:13:56 +01:00

21 lines
626 B
Docker

FROM node:jessie
ARG VERSION
ENV VERSION ${VERSION:-development}
RUN echo udev hold | dpkg --set-selections;\
echo initscripts hold | dpkg --set-selections;\
apt-get -yq update;\
DEBIAN_FRONTEND=noninteractive apt-get install -yq -f --no-install-recommends build-essential dnsutils git xorg openbox libasound2 libnss3-dev libxss1 libatk-bridge2.0-0 libgtk2.0-common libgtk-3-0 ;\
apt-get autoremove -yq ;\
apt-get clean -yq
WORKDIR /app
ADD setup/web/archive.tar.gz /app
RUN npm install pm2 -g
RUN npm install --unsafe-perm
CMD ["pm2-runtime", "start", "ecosystem.config.js", "--raw" , "--env", "production"]