cd3248340d
Build working docker-compose.yml working
28 lines
732 B
Docker
28 lines
732 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
|
|
|
|
WORKDIR /app
|
|
|
|
COPY start.sh package.json *.js settings.json ecosystem.config.json /app/
|
|
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"]
|