GithubHelp home page GithubHelp logo

golang-multistage-docker's Introduction

A Tiny golang Docker container example for resin.io

This example demonstrates the use of Docker multi-stage builds to make very small runtime containers. In this example deploy a simple hello world webserver that listens on port 80. The resulting docker container is only 5.26 MB, compared to 642 MB of full resin/raspberrypi3-golang:1.8 golang base image that is a massive improvement.

After pushing this project to your resin.io device, you should see the following in your dashboard logs:

0.07.17 11:31:40 (+0100) Starting application 'registry2.resin.io/wificonnect/2980081f163d08555cc19df54c0fe90708e7bb2f'
20.07.17 11:31:41 (+0100) Started server on port :80.
20.07.17 11:31:41 (+0100) Open https://56b40a6e13416c3f25475a9ed17762da.resindevice.io/ in your browser.

Note: You will need to enable the deviceURL for your device before opening the link printed in the logs.

golang-multistage-docker's People

Contributors

shaunmulligan avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

curx bgentry

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.