salix/Dockerfile

44 lines
1.5 KiB
Docker
Raw Normal View History

2018-12-31 13:02:46 +00:00
FROM debian:stretch-slim
2019-02-25 11:52:23 +00:00
ENV TZ Europe/Madrid
2018-12-31 13:02:46 +00:00
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
2019-01-08 17:46:14 +00:00
&& apt-get install -y --no-install-recommends \
2018-12-31 13:02:46 +00:00
curl \
2019-01-08 19:09:55 +00:00
ca-certificates \
2018-12-31 13:02:46 +00:00
gnupg2 \
libfontconfig lftp \
2020-08-12 05:26:07 +00:00
&& apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
2020-08-12 05:28:58 +00:00
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget \
2022-11-04 10:48:18 +00:00
&& curl -sL https://deb.nodesource.com/setup_12.x | bash - \
2019-01-08 19:09:55 +00:00
&& apt-get install -y --no-install-recommends \
2018-12-31 13:02:46 +00:00
nodejs \
2019-01-08 19:09:55 +00:00
&& apt-get purge -y --auto-remove \
gnupg2 \
2019-01-08 17:46:14 +00:00
&& rm -rf /var/lib/apt/lists/* \
2018-12-31 13:02:46 +00:00
&& npm -g install pm2
2018-12-27 15:10:55 +00:00
WORKDIR /salix
2019-01-04 12:32:04 +00:00
COPY package.json package-lock.json ./
2018-12-27 15:34:48 +00:00
COPY loopback/package.json loopback/
2019-01-22 09:57:52 +00:00
COPY print/package.json print/
2018-12-27 15:10:55 +00:00
RUN npm install --only=prod
2019-02-25 12:41:56 +00:00
RUN npm --prefix ./print install --only=prod ./print
2018-12-27 11:54:16 +00:00
2018-12-27 15:34:48 +00:00
COPY loopback loopback
2018-12-27 15:10:55 +00:00
COPY back back
COPY modules modules
2019-01-22 09:57:52 +00:00
COPY print print
2018-12-27 15:10:55 +00:00
COPY \
2019-01-04 12:32:04 +00:00
LICENSE \
README.md \
2018-12-27 15:10:55 +00:00
./
2018-12-27 11:54:16 +00:00
2019-12-08 11:31:32 +00:00
CMD ["pm2-runtime", "./back/process.yml"]
HEALTHCHECK --interval=15s --timeout=10s \
CMD curl -f http://localhost:3000/api/Applications/status || exit 1