https://github.com/roundpartner/hugo-nginx
Docker container for hosting websites generated by Hugo
https://github.com/roundpartner/hugo-nginx
Last synced: 3 months ago
JSON representation
Docker container for hosting websites generated by Hugo
- Host: GitHub
- URL: https://github.com/roundpartner/hugo-nginx
- Owner: roundpartner
- License: mit
- Created: 2019-12-25T23:17:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-25T23:50:26.000Z (over 6 years ago)
- Last Synced: 2025-03-03T01:31:44.286Z (over 1 year ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hugo NGinx
Docker container for hosting websites generated by Hugo
## Usage
Create a ```Dockerfile``` and copy everything into the NGinx public directory.
```dockerfile
FROM imacatlol/hugo-nginx
COPY public/ /usr/share/nginx/html
```
### Build
Then build the docker image
```bash
docker build -t static-website .
```
### Run
Run the docker container
```bash
docker run --rm --name static-website -p 80:80 static-website
```