diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..de3af6cf386723523401061601451beb3ec52943 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,9 @@ +build: + stage: build + image: + name: gcr.io/kaniko-project/executor:debug + entrypoint: [""] + script: + - mkdir -p /kaniko/.docker + - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json + - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:${CI_COMMIT_TAG:-$CI_COMMIT_SHORT_SHA} --destination $CI_REGISTRY_IMAGE:latest diff --git a/Dockerfile b/Dockerfile index 5252376c9ddcdb84ee00ee82ffb1342a422873d4..556a4abaa19124e882cd36a1dc2840154b717d01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,10 +9,10 @@ RUN yarn install --production FROM alpine as prod -RUN apk add --no-cache nodejs yarn openssl tini +RUN apk add --no-cache nodejs yarn openssl WORKDIR /app COPY --from=base /app /app ADD . . -ENTRYPOINT ["/sbin/tini", "--"] -CMD ["yarn", "start"] +ENTRYPOINT ["yarn"] +CMD ["start"]