version: v4
base: docker-registry.wikimedia.org/nodejs10-slim
lives:
  in: /srv/service
runs:
  environment: { APP_BASE_PATH: /srv/service }

variants:
  build:
    base: docker-registry.wikimedia.org/nodejs10-devel
    copies: [local]
    apt: { packages: [git, build-essential, python-pkgconfig] }
    node: { requirements: [package.json] }
    runs: { environment: { LINK: g++ } }
  development:
    includes: [build]
    apt: { packages: [ca-certificates] }
    entrypoint: [node, server.js]
  test:
    includes: [build]
    apt: { packages: [ca-certificates] }
    entrypoint: [npm, test]
  prep:
    includes: [build]
    node: { env: production }
  production:
    copies: [prep]
    node: { env: production }
    entrypoint: [node, server.js]

version: v4
base: docker-registry.wikimedia.org/nodejs10-slim
lives:
  in: /srv/service
runs:
  environment: { APP_BASE_PATH: /srv/service }

variants:
  build:
    base: docker-registry.wikimedia.org/nodejs10-devel
    copies: [local]
    apt: { packages: [git, build-essential, python-pkgconfig] }
    node: { requirements: [package.json] }
    runs: { environment: { LINK: g++ } }
  development:
    includes: [build]
    apt: { packages: [ca-certificates] }
    entrypoint: [node, server.js]
  test:
    includes: [build]
    apt: { packages: [ca-certificates] }
    entrypoint: [npm, test]
  prep:
    includes: [build]
    node: { env: production }
  production:
    copies: [prep]
    node: { env: production }
    apt: { packages: [ca-certificates] }
    entrypoint: [node, server.js]

Include ca-certificates in the production image
Blubber: Include ca-certificates in the production image

Needed for profiling the service in order to move to k8s.

Bug: T218733
Change-Id: Ibcb7443652e90aa9a1e8cc6bd59c8e67a5a525a7
