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

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

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

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

Add ca-certificates package to production
Add ca-certificates package to production

We want citoid to be able to reach out to https destinations on the
internet and be able to verify their TLS certificates

Bug: T213194
Change-Id: Ia39763471a78697530a6dc0506224a057da8e36f
