Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 655 Bytes

File metadata and controls

35 lines (26 loc) · 655 Bytes

Gitlab CI with docker (Node.js)

Linked dependencies during build

For example:

  • Node.js - submodules has to be installed during build process, because some dependencies contains create binaries for current OS
# Dockerfile
FROM node:8.9.0-alpine

COPY . /code
WORKDIR /code

RUN rm -rf node_modules && yarn install --production --ignore-engines
# .gitlab-ci.yml
stages:
  - build

build:
  image: inloopeu/devops
  stage: build
  tags:
    - docker
  services:
    - docker:dind
  script:
    - devops gitlab docker build

NOTE: images are tagged automatically, read more in Docker image tagging