Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iambryancs opened this issue Jun 25, 2024 · 0 comments
Open

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

iambryancs opened this issue Jun 25, 2024 · 0 comments

Comments

@iambryancs
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant