• Stars
    star
    225
  • Rank 177,187 (Top 4 %)
  • Language
    Dockerfile
  • License
    MIT License
  • Created over 4 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Docker boilerplates a.k.a templates for most programming language.

Dockerfile Boilerplates For All

Hello World! of Docker

Build Status GitHub repo size visitors

Docker boilerplates / templates for most common progamming languages. Like a Hello World! but for docker images.


Note: Not production quality yet

List Of Programming Languages

Docker

Docker is service which provides OS-level virtualization with such ease and compatibility that no virtual machines can offer. It also packs software dependencies within itself and runs independently and flexibly on various platforms.

To know more: docker.com

Instructions

Where do I start?

✌️ Two Choices.

#1: Pull the image from dockerhub and run


  - docker pull gauthamp10/language-name
  - docker run --rm gauthamp10/language-name
  For web app
  - docker run -p 5000:5000 --rm -v /path/to/volume/:/app language-name

  Example:

  - docker pull gauthamp10/java
  - docker run --rm gauthamp10/java

To add the image in your Dockerfile:

FROM gauthamp10/language-name:latest

Example:

FROM gauthamp10/java

#2: Build your own version from the template Dockerfile

At first edit the Dockerfile as per your liking


  - docker build -t language-name .
  - docker run --rm language-name

Example:

  - docker build -t java .
  - docker run --rm java

How can I upload my image to docker hub?

Create an account on dockerhub and then


  - docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
  - docker tag language-name $DOCKER_USERNAME/language-name:$BUILD_VERSION
  - docker push $DOCKER_USERNAME/language-name:$BUILD_VERSION

  Example:

  - docker login -u gauthamp10 -p **********
  - docker tag java gauthamp10/java:1.0
  - docker push gauthamp10/java:1.0


Play around with your custom build by


  - docker pull $DOCKER_USERNAME/language-name:latest

  Example:

  - docker pull gauthamp10/java:latest

Overview Of Dockerfile

Image Name Language Version Base Image Layers Image Size
gauthamp10/ada 10.1.0-1 ubuntu:latest
gauthamp10/bash 4.4.20 alpine:latest
gauthamp10/c-build 9.3.0-r2 alpine:latest
gauthamp10/clsip 2.49.92 ubuntu:latest
gauthamp10/cpp 9.3.0-r2 alpine:latest
gauthamp10/dart 2.8.2 ubuntu:latest
gauthamp10/deno 1.0.5 alpine:latest
gauthamp10/elixir 1.10.3-r0 alpine:latest
gauthamp10/erlang 23.0-r0 alpine:latest
gauthamp10/fortran 9.3.0-r2 alpine:latest
gauthamp10/go-build 1.14 golang:1.14
gauthamp10/haskell 8.8.3-r0 alpine:latest
gauthamp10/icon v951 ubuntu:latest
gauthamp10/java openjdk8 alpine:latest
gauthamp10/javascript 1.18.0-r0(nginx) nginx:alpine
gauthamp10/julia 1.4.1 ubuntu:latest
gauthamp10/kotlin v1.3.72 alpine:latest
gauthamp10/lisp 6.24-3 ubuntu:latest
gauthamp10/lua 5.2.4 alpine:latest
gauthamp10/node 12.16.3-r0 alpine:latest
gauthamp10/objc 4.9.3.0-1 ubuntu:latest
gauthamp10/perl 5.30.2-r0 alpine:latest
gauthamp10/php 7.4 php:latest-apache
gauthamp10/python 3.6 python:3.6-slim
gauthamp10/pythonweb 3.6 python:3.6-slim
gauthamp10/r-build 3.6.3-r2 alpine:latest
gauthamp10/rust 1.43.1-r1 alpine:latest
gauthamp10/scala 2.13.2 ubuntu:latest
gauthamp10/swift 5.2.3r ubuntu:latest

Note:

This repo is tested with automated builds on commit with TRAVIS-CI. Some image meta data is being pulled using Microbadger.

How can I contribute?

Contributions are always welcomed. Create a boilerplate / template for any other programming languages or you could also add any multistage builds which are not available in the repo by opening a pull request.For more information checkout the CONTRIBUTING.md file.

Contributors πŸ˜πŸ’Œ


Gautham Prakash

✍️

Joshua Walcher

πŸ“–

Raphael Habereder

✍️

Nicolas CARPi

✍️

Alen Joseph

✍️

Author

Gautham Prakash

My other projects: github.com/gauthamp10

Website: gauthamp10.github.io

Blog: gauthamp10/blog

License

This project is licensed under the MIT License - see the LICENSE file for details

More Repositories

1

Google-Playstore-Dataset

Google PlayStore App dataset. (2.3 million App Data) and 24 attributes
47
star
2

android-permissions-dataset

Android App Permission data of 2.2 million applications from Google Playstore.
19
star
3

apple-appstore-apps

Apple AppStore Apps dataset. (1.2 million App Data) and 21 attributes
17
star
4

Google_Play_App_Info

A simple tool to fetch Playstore App information.
Python
11
star
5

freedownloadmanager-linux-appimage

FDM (freedownloadmanager) appimage recipe for linux distros.
9
star
6

soundcloud-downloader

A simple PHP based implementation for directly downloading songs from soundcloud
PHP
7
star
7

openload-downloader

An openload downloader based on selenium [python]
Python
6
star
8

uploadfile-upindia

An api to download directly download from uploadfile.cc or upindia.mobi
PHP
5
star
9

soundcloud

An opensource soundcloud downloader built using flask and repl.it
Python
5
star
10

telegram_bot

A chatbot agentπŸ‘¨β€πŸ’» which offers various web services plus the ability to chat πŸ—¨with you for long πŸ’€ .
Python
5
star
11

URL-Shortener

An ad-free anonymous open-source URL shortening service.
Python
4
star
12

whatsapp-openapi

Whatsapp web form to send messages without saving contact.
JavaScript
4
star
13

musicbot

A simple telegram music bot
Python
3
star
14

wikiscrape

A python web scraper for fetching summary as well as raw information table details for any query from wikipedia.
Python
3
star
15

youtube-downloader

An free cross-platform youtube downloader built using pytohn, js and eel
CSS
2
star
16

lyrics-downloader

Python tool to fetch song lyrics and to save it offline.
Python
1
star
17

youtubedownloader

An opensource youtube downloader and search tool built using flask
CSS
1
star
18

libgen_cloner

A yify for books
CSS
1
star
19

flipkart_scraper

Web scraper for fetching product details from flipkart.
PHP
1
star