cut -c3- <<'eof' > Dockerfile
FROM node
WORKDIR /app
SHELL ["/bin/bash","-c"]
RUN apt-get update && apt-get dist-upgrade -y
RUN apt-get install -y tree curl jq less vim
RUN git config --global user.email "[email protected]"
RUN git config --global user.name "Foo Bar"
RUN git config --global init.defaultBranch main
RUN npm install -g @angular/cli
RUN yes '' | ng new project01
CMD ["/bin/bash"]
COPY Dockerfile /
eof
docker image build --tag angular .
docker container run \
--rm \
--detach \
--workdir /app/project01 \
--publish 127.10.10.10:4200:4200 \
--name angular \
angular \
ng serve --host 0.0.0.0