Skip to content

Docker build: "Error: x Found an unknown key globalDotEnv." #48

Description

@iambryancs

Running docker build returns the following errors:

❯ docker build -f apps/web/Dockerfile -t feedbase:local .
DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit:
            https://docs.docker.com/go/buildx/

Sending build context to Docker daemon  10.25MB
Step 1/36 : FROM node:18-alpine AS alpine
 ---> 3bf7cda95541
Step 2/36 : FROM alpine as base
 ---> 3bf7cda95541
Step 3/36 : ENV PNPM_HOME="/pnpm"
 ---> Using cache
 ---> 9aff82d64f97
Step 4/36 : ENV PATH="$PNPM_HOME:$PATH"
 ---> Using cache
 ---> c2abca642727
Step 5/36 : RUN corepack enable
 ---> Using cache
 ---> bcd962e5a753
Step 6/36 : RUN pnpm install turbo --global
 ---> Using cache
 ---> d3cb0827615a
Step 7/36 : RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/*
 ---> Using cache
 ---> 2cf5035edfb8
Step 8/36 : FROM base AS builder
 ---> 2cf5035edfb8
Step 9/36 : RUN apk add --no-cache libc6-compat
 ---> Using cache
 ---> 051533919a3d
Step 10/36 : RUN apk update
 ---> Using cache
 ---> 819db5f78211
Step 11/36 : WORKDIR /app
 ---> Using cache
 ---> 15e053074cd8
Step 12/36 : COPY . .
 ---> 50b9d20aaf46
Step 13/36 : RUN turbo prune --scope=web --docker
 ---> Running in 93d3a192af09
 WARNING  No locally installed `turbo` found. Using version: 2.0.5.

Attention:
Turborepo now collects completely anonymous telemetry regarding usage.
This information is used to shape the Turborepo roadmap and prioritize features.
You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
https://turbo.build/repo/docs/telemetry

Generating pruned monorepo for web in /app/out
 - Added @feedbase/tailwind-config
 - Added eslint-config-custom
 - Added tsconfig
 - Added ui
 - Added web
turbo_json_parse_error

  x failed to parse turbo json

Error:   x Found an unknown key `globalDotEnv`.
   ,-[3:1]
 3 |   "globalDependencies": ["**/.env"],
 4 |   "globalDotEnv": [".env"],
   :   ^^^^^^^^^^^^^^
 5 |   "globalEnv": [
   `----

The command '/bin/sh -c turbo prune --scope=web --docker' returned a non-zero code: 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions