diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d090794ab6558f107378dbd45d370bbd91a3858..983caf67d8c2ae056ce8d26bcc6d6c5ac76aefcc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: - build default: - image: nikolaik/python-nodejs:python3.11-nodejs19-alpine + image: registry.graphpolaris.com/library/frontend-builder:latest cache: &cache key: files: @@ -16,12 +16,6 @@ default: - ./libs/shared/node_modules/ policy: pull -before_script: - - npm i -g pnpm - - pnpm config set store-dir .pnpm-store - - apk add --no-cache --virtual .build-deps build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev - - apk add --no-cache --virtual .runtime-deps cairo jpeg pango giflib - install:js: stage: prepare interruptible: true diff --git a/dockerfiles/build.dockerfile b/dockerfiles/build.dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..b70cce04485fc1ac0765ce230fda1f879e5dd4c9 --- /dev/null +++ b/dockerfiles/build.dockerfile @@ -0,0 +1,6 @@ +FROM nikolaik/python-nodejs:python3.11-nodejs19-alpine + +RUN npm i -g pnpm +RUN pnpm config set store-dir .pnpm-store +RUN apk add --no-cache --virtual .build-deps build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev +RUN apk add --no-cache --virtual .runtime-deps cairo jpeg pango giflib \ No newline at end of file diff --git a/dockerfiles/build.md b/dockerfiles/build.md new file mode 100644 index 0000000000000000000000000000000000000000..0279090b31b65bc10c70c58719f2d5c1d21f3935 --- /dev/null +++ b/dockerfiles/build.md @@ -0,0 +1,17 @@ +# Builder image instructions + +login to docker repo + +`docker login https://registry.graphpolaris.com/` + +Build image with name/tag + +`docker build -t registry.graphpolaris.com/library/frontend-builder:0.0.1 - < build.dockerfile` +`docker build -t registry.graphpolaris.com/library/frontend-builder:latest - < build.dockerfile` + +or change the tag +`docker tag OLDTAG registry.graphpolaris.com/library/frontend-builder:latest` + +push image to repo + +`docker push registry.graphpolaris.com/library/frontend-builder:latest`