Sign inSign up

mohanbalakrishnan/static-website

By mohanbalakrishnan

•Updated over 1 year ago

Sample static html app with nginx

Image
Web servers
0

94

mohanbalakrishnan/static-website repository overview

Dockerfile:

⁠Use the Nginx base image

FROM nginx:alpine

⁠Install Git

RUN apk add --no-cache git

⁠Remove the default Nginx HTML files

RUN rm -rf /usr/share/nginx/html/*

⁠Clone your GitHub repository

RUN git clone https://github.com/technext/novena.git⁠ /usr/share/nginx/html

⁠Expose the default Nginx port

EXPOSE 80

⁠Start Nginx

CMD ["nginx", "-g", "daemon off;"]


Build : docker build -t static-website:latest .

Run : docker run -d -p 80:80 static-website:latest

Tag summary

Content type

Image

Digest

sha256:d85a59115…

Size

32.1 MB

Last updated

over 1 year ago

docker pull mohanbalakrishnan/static-website