Coder Social home page Coder Social logo

docker-nginx's Introduction

專案指引

使用 nginx 快速建立 Static Web Site 。

手邊有現成的 Static Web Site ,欲觀察其內容,可使用本專案作為「Project Template」, 透過 nginx ,快速完成 Static Web Site 的建置,以便能馬上使用瀏覽器觀察其內容。


作業程序

建置 Docker Image 檔案作業

$ docker build -t <docker-hub-username>/nginx_site:1.0 .

執行 Docker Image 檔案作業

(1) 啟動 Docker Container

$ docker run --rm --name web-nginx --publish 8080:80 -d <docker-hub-username>/nginx_site:1.0

(2) 使用瀏覽器觀看網址: http://127.0.0.1:8080/

觀察 Docker Container

$ docker exec -it web-nginx bash

參考資料

docker-nginx's People

Contributors

alanjui avatar

Watchers

James Cloos avatar  avatar  avatar

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.