2022-11-10 22:46:03 +00:00
|
|
|
FROM debian:bullseye-slim
|
2019-02-25 11:52:23 +00:00
|
|
|
ENV TZ Europe/Madrid
|
2018-12-21 10:36:44 +00:00
|
|
|
|
2018-12-31 13:02:46 +00:00
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
2022-11-10 22:46:03 +00:00
|
|
|
|
|
|
|
# NodeJs
|
|
|
|
|
2018-12-31 13:02:46 +00:00
|
|
|
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 \
|
2023-03-15 13:24:30 +00:00
|
|
|
graphicsmagick \
|
2023-06-20 06:16:36 +00:00
|
|
|
&& curl -fsSL https://deb.nodesource.com/setup_14.x | bash - \
|
2022-11-10 22:46:03 +00:00
|
|
|
&& apt-get install -y --no-install-recommends nodejs \
|
2023-06-20 06:16:36 +00:00
|
|
|
&& npm install -g npm@8.19.2
|
2022-11-10 22:46:03 +00:00
|
|
|
|
|
|
|
# Puppeteer
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2019-01-08 19:09:55 +00:00
|
|
|
&& apt-get install -y --no-install-recommends \
|
2022-11-10 22:46:03 +00:00
|
|
|
libfontconfig lftp 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 libxtst6 \
|
|
|
|
fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget \
|
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
|
|
|
|
2022-11-10 22:46:03 +00:00
|
|
|
# Salix
|
|
|
|
|
2018-12-21 10:36:44 +00:00
|
|
|
WORKDIR /salix
|
2022-11-10 22:46:03 +00:00
|
|
|
|
|
|
|
COPY print/package.json print/package-lock.json print/
|
|
|
|
RUN npm --prefix ./print install --omit=dev ./print
|
|
|
|
|
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/
|
2022-11-10 22:46:03 +00:00
|
|
|
RUN npm install --omit=dev
|
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"]
|
2019-12-11 15:30:45 +00:00
|
|
|
|
2019-12-30 11:36:19 +00:00
|
|
|
HEALTHCHECK --interval=15s --timeout=10s \
|
2019-12-11 15:30:45 +00:00
|
|
|
CMD curl -f http://localhost:3000/api/Applications/status || exit 1
|