Skip to content

A base container to serve Middleman content using Nginx. Saves memory and deploy time.

License

Notifications You must be signed in to change notification settings

octohost/middleman-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

middleman-nginx

A base container to serve Middleman content using Nginx. Saves memory and deploy time.

You don't need to use Middleman to serve your site - you can just compile the files and use anything - middleman build

This is a container that has Ruby and Middleman available, to compile and build the static site, that nginx serves.

You can use our container: docker pull octohost/middleman-nginx

Or you can build your own:

docker build -t your-name-here/middleman-nginx .
docker push your-name-here/middleman-nginx

After this - just add this Dockerfile to your Harp repo:

FROM octohost/middleman-nginx

WORKDIR /srv/www

ADD . /srv/www/
RUN middleman build

EXPOSE 80

CMD nginx

Push it to your docker server - and your server will use 4-6MB of RAM instead of 60MB.

To see an example working repo, take a look here.

About

A base container to serve Middleman content using Nginx. Saves memory and deploy time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages