This repository contains Dockerfile
definitions for lambda3/nginx-angular Docker images.
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
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
- Giovanni Bassi, aka Giggio, Lambda3, @giovannibassi
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.