To build a Docker image, launch the following command:
docker build --build-arg GITHUB_DIR=69pmb \
--build-arg GITHUB_PROJECT=AllMovies \
--build-arg GITHUB_HASH=main \
--build-arg NODE_VERSION=14.18.2-alpine3.12 \
--build-arg ANGULAR_VERSION=10.2.4 \
--build-arg NG_NGINX_VERSION=0.1.1 \
-t allmovies https://raw.githubusercontent.com/69pmb/Deploy/main/docker/ng-build/Dockerfile
And then, to run it:
docker run --name allmovies -d -p 8080:8080 -t allmovies:latest
-
Install node.js, npm, git and http-server (
npm i -g http-server
). -
In your workspace:
git clone https://github.com/69pmb/AllMovies.git
-
In the AllMovies folder:
-
Downloads dependencies:
npm i
-
Builds the app:
npm run build
-
Runs the app and opens the browser:
http-server .\dist -o