Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.31 KB

README.md

File metadata and controls

41 lines (24 loc) · 1.31 KB

Typescript & Node template

Docker TypeScript NodeJS

Getting Started

These instructions will give you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Requirements for the software and other tools to build, test and push

Building an image

To build this project in dev mode you only need docker (you may need to use sudo)

docker build -t <image-name> . --target=dev

for prod

docker build -t <image-name> . --target=prod

run the image

make sure your APP_(ENVIRONMENT)_PORT matches ports

docker run -it --name=<container-name> -p <INTERNAL_PORT>:<EXTERNAL_PORT> --mount type=bind,source="$(pwd)",target=/app <image-name> .

we need bind mount in development to have the ability to reload nodemon on save, in production it's not neccessary.

License

This project is licensed under the GNU GPL License - see the LICENSE file for details