2020-07-09 15:34:01 +00:00
|
|
|
FROM node:current-slim
|
2019-10-23 15:20:00 +00:00
|
|
|
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 blackbox libasound2 libnss3-dev libxss1 libatk-bridge2.0-0 libgtk2.0-common libgtk-3-0 ;\
|
|
|
|
apt-get autoremove -yq ;\
|
|
|
|
apt-get clean -yq
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2020-07-09 15:34:01 +00:00
|
|
|
COPY start.sh package.json *.js ecosystem.config.json /app/
|
2019-10-23 15:20:00 +00:00
|
|
|
COPY lib/ /app/lib
|
|
|
|
COPY scrapers/ /app/scrapers
|
|
|
|
COPY pug/ /app/pug
|
|
|
|
|
|
|
|
RUN npm install pm2 -g && npm install
|
|
|
|
|
|
|
|
# RUN npm install
|
|
|
|
|
|
|
|
# COPY start.sh /app/
|
|
|
|
|
|
|
|
RUN chmod +x /app/start.sh
|
|
|
|
|
|
|
|
ENTRYPOINT ["/app/start.sh"]
|