Skip to content

frank-scrapbook/simple-from-scratch-docker-base-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simple-from-scratch-docker-base-image

Using "FROM scratch" to build docker base image without parent image.

macOS Steps

From Docker Docs: https://docs.docker.com/build/building/base-images/

$ docker run --rm -it -v $PWD:/build ubuntu:22.04

container# apt-get update && apt-get install -y build-essential
container# cd /build
container# gcc -o hello -static hello.c
container# exit

$ docker build -t hello .
$ docker run --rm hello

About

Using "FROM scratch" to build docker base image without parent image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published