Skip to content

bug: Dashboard Docker build fails due to missing tsc command #752

@srini-abhiram

Description

@srini-abhiram

Describe the bug

The Docker build for the dashboard fails with the error sh: tsc: not found. This is because the TypeScript compiler is not available in the build environment.

To Reproduce

Steps to reproduce the behavior:

  1. Navigate to the dashboard directory.
  2. Run docker build -t dashboard-test .

Expected behavior

The Docker image should build successfully locally.

Additional context

Error Logs

 > [frontend-builder 6/6] RUN npm run build:
0.300
0.300 > semantic-router-dashboard@1.0.0 build
0.300 > tsc && vite build
0.300
0.303 sh: tsc: not found

Relevant Dockerfile section

# Build frontend
FROM node:18-alpine AS frontend-builder
WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm ci
COPY frontend/ ./
RUN npm run build

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions