2023-11-03 12:43:19 +00:00
|
|
|
FROM node:20-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
|
|
|
|
|
|
|
|
|
|
|
# Puppeteer
|
|
|
|
|
|
|
|
RUN apt-get update \
|
2019-01-08 19:09:55 +00:00
|
|
|
&& apt-get install -y --no-install-recommends \
|
2023-11-03 12:43:19 +00:00
|
|
|
gnupg2 \
|
|
|
|
graphicsmagick \
|
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 \
|
2023-11-16 22:07:26 +00:00
|
|
|
fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
|
|
|
|
|
|
|
|
# Extra dependencies
|
|
|
|
|
2023-11-16 22:13:16 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y --no-install-recommends \
|
2023-11-17 07:56:25 +00:00
|
|
|
samba-common-bin samba-dsdb-modules\
|
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/
|
2023-12-19 14:32:39 +00:00
|
|
|
RUN npm --prefix ./print install --omit=dev ./print
|
2022-11-10 22:46:03 +00:00
|
|
|
|
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/
|
2023-12-19 14:32:39 +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
|