You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
441 B

# Docker for static html using Nginx
## Introduction
Use this runbook for your web development rather than setting up a whole Apache server.
## The Dockerfile
```
FROM nginx:alpine
COPY . /usr/share/nginx/html
EXPOSE 80
```
## Build the image
name:tag
`docker build -t myproject:v1 .`
## Run a container from the image
`docker run -d -p 8080:80 --name myproject myproject:v1`
2 years ago
## View the site
Open a browser at `http://localhost:8080`