UNCLASSIFIED

Commit cee7c765 authored by Andy Maksymowicz's avatar Andy Maksymowicz
Browse files

Merge branch 'update-base-image' into 'development'

Update base image

See merge request !17
parents 0d807c2e 20efc511
Pipeline #299822 passed with stages
in 12 minutes and 48 seconds
...@@ -9,5 +9,10 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} ...@@ -9,5 +9,10 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
COPY --from=base /usr/local/bin/ng /usr/local/bin/ng COPY --from=base /usr/local/bin/ng /usr/local/bin/ng
COPY --from=base /usr/local/lib/node_modules/@angular /usr/local/lib/node_modules/@angular COPY --from=base /usr/local/lib/node_modules/@angular /usr/local/lib/node_modules/@angular
# removes exposed secret RSA key
USER root
RUN rm -r /usr/local/lib/node_modules/@angular/cli/node_modules/node-gyp/test/fixtures/server.key
USER node
HEALTHCHECK CMD ng --version HEALTHCHECK CMD ng --version
ENTRYPOINT ["ng"] ENTRYPOINT ["ng"]
\ No newline at end of file
...@@ -2,4 +2,23 @@ ...@@ -2,4 +2,23 @@
The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command shell. The Angular CLI is a command-line interface tool that you use to initialize, develop, scaffold, and maintain Angular applications directly from a command shell.
Upstream documentation can be found [here](https://github.com/angular/angular-cli). Upstream documentation can be found [here](https://github.com/angular/angular-cli).
\ No newline at end of file
## Usage
Typical local usage of this image:
Building the image:
Enter a name for your image in the <imageName> placeholder and verify successful build
```
docker build -t <imageName> .
docker images
```
Example Use:
```
If experiencing timeouts on installations, disable corporate vpn
docker run -u $(id -u) --rm -v "$PWD":/app trion/ng-cli ng new MyDemo
cd MyDemo
docker run -u $(id -u) --rm -v "$PWD":/app trion/ng-cli ng build
```
...@@ -40,3 +40,4 @@ maintainers: ...@@ -40,3 +40,4 @@ maintainers:
name: "Daniel Sendik" name: "Daniel Sendik"
# The gitlab username of the current container owner # The gitlab username of the current container owner
username: "dsendik" username: "dsendik"
cht_member: false
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment