Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 736 Bytes

README.md

File metadata and controls

50 lines (32 loc) · 736 Bytes

Docker Typescript Template

This is a template for a Dockerized Typescript project.

Provides reliable and reproducible development and deployment environments.

Stack

  • Typescript
  • Node.js
  • Pnpm
  • Tsx for development

Usage

Development

run:

docker compose -f docker-compose.dev.yml up

^ This will start the container and run the development server, it will also watch for changes in the source code.

if there are any changes in package.json, run:

docker compose -f docker-compose.dev.yml up --build

Production

To build image, run:

docker compose build

To run the container, run:

docker-compose up

To stop the container, run:

docker-compose down