Code Monkey home page Code Monkey logo

docker-mono-fastcgi-nginx's Introduction

Deprecated.

This is no longer maintained as mono-fastcgi-server is no longer maintained and performance tests showed apache with mono perform better. If you have a legacy web app you want to run use mono-apache or mono-nginx if you can self host the mono app.

MONO Configured with runit Dockerfile

This repository contains Dockerfile for publishing Docker's automated build to the public Docker Hub Registry with Runit as process with id 1 launching nginx and mono-fastcgi-server4 as services and supervising them.

Nginx is exposed from the container on port 80 and the mono-fastcgi-server4 loads the application from /var/www.

Base docker image

seif/mono

Usage

First you need to pull the image:

docker pull seif/docker-mono-fastcgi-nginx

Then build your project, create a Dockerfile, copy the application to /var/www and start runit:

FROM seif/docker-mono-fastcgi-nginx
ADD buildOutput/website /var/www/
CMD ["/usr/sbin/runit_bootstrap"]

Build your container

docker build -t my_website .

Run it, forwarding the host's port 8080 to the container's port 80

docker run --rm -i -t -p 8080:80 my_website

You should now be able to access the site on your local machine port 8080

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.