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

39 lines
936 B
Docker

FROM node:stretch
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
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
python \
python-dev \
python-pip \
python-setuptools \
groff \
less \
&& pip install --upgrade awscli \
&& apt-get clean
WORKDIR /app
COPY start.sh package.json *.js /app/
COPY ncas/ /app/ncas
COPY helpers/ /app/helpers
RUN npm install pm2 -g && npm install
# RUN npm install
# COPY start.sh /app/
RUN chmod +x /app/start.sh
ENTRYPOINT ["/app/start.sh"]