Skip to content
This repository was archived by the owner on Jun 27, 2021. It is now read-only.

Files

Latest commit

 

History

History
26 lines (16 loc) · 1.11 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.11 KB

Dockerize-angular

Tutorial

This project will let you create, build, test, and deploy angular applications in docker without needing tools to install on your computer.

  1. copy env-example and rename to .env

  2. Set app name, whether to use angular routing, css styles and local running port in .env file

  3. Type sh run.sh in terminal to create to create a new angular project. The project will create under the same directory.

To serve the project locally, type sh run.sh start.

The project will open in the localhost:port specified in .env file.

Stop the project by typping sh run.sh stop.

Extras, in order to run ng related commands Type sh run.sh exec <command> to execute the command (be remember to use double quotes(") for the command)

Known Issues

  1. This docker uses the included user of node docker - node(uid - 1000). Users other than uid 1000 will not be able to work with this version of project.

  2. If the container is stopped without removing - like shutting down the computer, the docker will not be start. Please type sh run.sh stop first to manually remove the container.