Skip to content

Repository files navigation

TMS monorepo

Build Docker image local

Build với cấu hình development:

docker build --build-arg ENV_FILE=.env.development -f dockerfile -t tms:local .

Build với cấu hình production:

docker build --build-arg ENV_FILE=env.prod -f dockerfile -t tms:prod .

Chạy local

Chạy image đã build bằng docker run:

docker run --rm --env-file .env.development -p 4000:4000 --name tms-local tms:local

Hoặc chạy bằng Docker Compose:

ENV_FILE=.env.development NODE_ENV=development docker compose up --build

Ứng dụng sẽ chạy tại http://localhost:4000.

Build và push image

docker buildx build --platform linux/amd64 --build-arg ENV_FILE=env.prod -f dockerfile -t owlix/tms:prod_linux --push .
docker buildx build --build-arg ENV_FILE=env.prod -f dockerfile -t owlix/tms:prod_macos --push .
docker buildx build --build-arg ENV_FILE=.env.development -f dockerfile -t owlix/tms:dev --push .

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages