WIP: feat: jenkins push docker imagen by branch #2763
|
@ -1,31 +1,23 @@
|
|||
FROM debian:bookworm-slim
|
||||
FROM node:20-bullseye-slim
|
||||
ENV TZ Europe/Madrid
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# NodeJs
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
ca-certificates \
|
||||
gnupg2 \
|
||||
graphicsmagick \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
||||
&& apt-get install -y --no-install-recommends nodejs \
|
||||
&& corepack enable pnpm
|
||||
|
||||
# Puppeteer
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
gnupg2 \
|
||||
graphicsmagick \
|
||||
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
|
||||
fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget \
|
||||
&& corepack enable pnpm
|
||||
|
||||
# Extra dependencies
|
||||
|
||||
|
@ -36,15 +28,15 @@ RUN apt-get update \
|
|||
&& npm -g install pm2
|
||||
|
||||
# Salix
|
||||
|
||||
WORKDIR /salix
|
||||
|
||||
RUN npm i -g gulp-cli
|
||||
|
||||
COPY print/package.json print/pnpm-lock.yaml print/
|
||||
RUN pnpm install --prod --prefix=print
|
||||
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
COPY loopback/package.json loopback/
|
||||
RUN pnpm install --prod
|
||||
|
||||
COPY loopback loopback
|
||||
COPY back back
|
||||
|
@ -53,7 +45,13 @@ COPY print print
|
|||
COPY \
|
||||
LICENSE \
|
||||
README.md \
|
||||
gulpfile.js \
|
||||
./
|
||||
|
||||
CMD ["npx", "gulp", "back"]
|
||||
RUN npm install -g gulp-cli
|
||||
RUN apt-get update && apt-get install -y libkrb5-dev libssl-dev
|
||||
RUN pnpm install
|
||||
RUN gulp install
|
||||
|
||||
|
||||
CMD ["pnpx", "gulp", "backOnly"]
|
||||
|
|
Loading…
Reference in New Issue