WIP: feat: jenkins push docker imagen by branch #2763

Draft
alexm wants to merge 53 commits from 6695-docker_push into dev
2 changed files with 23 additions and 9 deletions
Showing only changes of commit 691790dcd7 - Show all commits

View File

@ -1,6 +1,3 @@
node_modules
print/node_modules
front
db
e2e
storage

View File

@ -1,23 +1,31 @@
FROM node:20-bullseye-slim
FROM debian:bookworm-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 \
&& corepack enable pnpm
fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget
# Extra dependencies
@ -50,8 +58,17 @@ COPY \
RUN npm install -g gulp-cli
RUN apt-get update && apt-get install -y libkrb5-dev libssl-dev
RUN apt-get update \
&& apt-get install -y build-essential python3 libssl-dev
RUN pnpm install
RUN pnpm install husky
COPY db db
COPY front front
COPY storage storage
RUN gulp install
CMD ["pnpx", "gulp", "backOnly"]
CMD ["pnpx", "gulp", "back"]