---
title: "Discussion on \"Docker build fix for TypeScript\" | Hashnode"
description: "Discussion on \"Docker build fix for TypeScript\". Issue\nWhen building a docker image generally, we skip installing dev dependencies for production\n# Skips installing dev dependencies\nRUN npm ci --only=production\n\nBut when working with TypeScript you need tsc which is a dev dependecy to compile the T..."
url: "https://hashnode.com/posts/docker-build-fix-for-typescript/68e9f65cabb81efe0913d022"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Docker build fix for TypeScript](https://dockerbuildfix.hashnode.dev/docker-build-fix-for-typescript?utm_source=hashnode&utm_medium=feed)

Issue When building a docker image generally, we skip installing dev dependencies for production # Skips installing dev dependencies RUN npm ci --only=production But when working with TypeScript you need tsc which is a dev dependecy to compile the T...

Oct 11, 2025 · 1 min read · dockerbuildfix.hashnode.dev  
Read the article

-   [#docker](https://hashnode.com/tag/docker)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#containerization](https://hashnode.com/tag/containerization)
-   [#dependencies](https://hashnode.com/tag/dependencies)
-   [#devdependencies](https://hashnode.com/tag/devdependencies)

## Written by

[Divy Pathak](https://hashnode.com/@divy03)

@divy03 · India

  
[View profile](https://hashnode.com/@divy03)

Developer, building useful things for web

I like to automate things and enjoying tinkering my system.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
