Skip to content

Lambda3/docker-nginx-angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nginx Angular Docker Image

This repository contains Dockerfile definitions for lambda3/nginx-angular Docker images.

Downloads from Docker Hub Stars on Docker Hub

Supported tags

Building

Simply add the built files to the /usr/share/nginx/html directory, as specified on the Nginx image.

A good example, assuming the Dockerfile is in the Angular project root, would be:

FROM lambda3/nginx-angular:1.19-alpine
COPY dist/<yourprojectname>/ /usr/share/nginx/html

Running

Simply run the built image:

docker run -p 4200:80 -ti <yourimagename>

Or if you are mounting the Angular built directory, do:

docker run --volume="$(pwd)/dist/<yourprojectname>:/usr/share/nginx/html" -p 4200:80 -ti lambda3/nginx-angular

Maintainers

License

This software is open source, licensed under the Apache License, Version 2.0. See LICENSE.txt for details. Check out the terms of the license before you contribute, fork, copy or do anything with the code. If you decide to contribute you agree to grant copyright of all your contribution to this project, and agree to mention clearly if do not agree to these terms. Your work will be licensed with the project at Apache V2, along the rest of the code.