2023-11-16 23:00:36 +00:00
|
|
|
FROM debian:bookworm-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-08 08:25:25 +00:00
|
|
|
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
2022-11-10 22:46:03 +00:00
|
|
|
&& apt-get install -y --no-install-recommends nodejs \
|
2024-02-05 11:28:45 +00:00
|
|
|
&& corepack enable pnpm
|
2022-11-10 22:46:03 +00:00
|
|
|
|
|
|
|
# Puppeteer
|
|
|
|
|
2023-11-16 22:13:16 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& 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 \
|
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
|
|
|
|
2024-02-02 22:41:19 +00:00
|
|
|
COPY print/package.json print/pnpm-lock.yaml print/
|
|
|
|
RUN pnpm install --prod --prefix=print
|
2022-11-10 22:46:03 +00:00
|
|
|
|
2024-02-02 22:41:19 +00:00
|
|
|
COPY package.json pnpm-lock.yaml ./
|
2018-12-27 15:34:48 +00:00
|
|
|
COPY loopback/package.json loopback/
|
2024-02-02 22:41:19 +00:00
|
|
|
RUN pnpm install --prod
|
2018-12-27 11:54:16 +00:00
|
|
|
|
2018-12-27 15:34:48 +00:00
|
|
|
COPY loopback loopback
|
2024-09-30 12:30:08 +00:00
|
|
|
RUN rm loopback/server/datasources.json && mv loopback/server/datasources.docker.json loopback/server/datasources.json
|
|
|
|
|
2018-12-27 15:10:55 +00:00
|
|
|
COPY back back
|
2024-09-30 12:30:08 +00:00
|
|
|
COPY db db
|
|
|
|
COPY .git .git
|
2018-12-27 15:10:55 +00:00
|
|
|
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 \
|
2024-09-30 12:30:08 +00:00
|
|
|
myt.config.yml \
|
2018-12-27 15:10:55 +00:00
|
|
|
./
|
2018-12-27 11:54:16 +00:00
|
|
|
|
2024-09-30 12:30:08 +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
|