Commit 648973cd authored by Christian Schöttke's avatar Christian Schöttke

New base image for other Q&A tools

parent 816e71bf
Pipeline #7177 passed with stage
in 36 seconds
build:
stage: build
tags:
- docker
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest
only:
- master
build_test:
stage: build
tags:
- docker
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
except:
- master
FROM python:3.7-slim-buster
RUN addgroup --system qa-tools \
&& adduser qa-tools --system --gecos "" --disabled-password --shell /bin/false --ingroup qa-tools \
&& mkdir /project \
&& chown qa-tools:qa-tools /project
WORKDIR /project
ONBUILD COPY requirements.txt requirements.txt
ONBUILD RUN pip install \
--quiet \
--no-cache-dir \
--disable-pip-version-check \
--compile \
--requirement requirements.txt
ONBUILD RUN rm requirements.txt
ONBUILD USER qa-tools
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment