Skip to content

fix: add a .dockerignore for the docs image #463

Closed

Description

@uniqueg

Why?

The docs image's builder stage runs COPY . . without a .dockerignore, so local .env* files reach the build. Only static output ships, and the NEXT_PUBLIC_* values are URLs today, but a secret in a local .env could end up in the bundle.

What?

  • Add a .dockerignore excluding .env* (except .env.example), node_modules and other local files.

Acceptance criteria

  • Local .env* files never reach the docs image build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions