Sign inSign up

vredens/scratch

By vredens

•Updated about 8 years ago

A scratch image with some static files for running Go binaries.

Image
0

1.5K

vredens/scratch repository overview

⁠Repository

https://gitlab.com/vredens/docker-images/tree/master/scratch⁠

⁠Info

Adds some necessary files for properly configuring scratch base image

Files added and reason

  1. /etc/ssl/certs/ca-certificates.crt: needed for running Go statically compiled files
  2. /etc/nsswitch.conf: needed for supporting defining hostname resolution set by docker runtime

⁠Quick Start

This image is what I currently use to package Golang binaries into usable containers.

Sample Dockerfile

FROM vredens/scratch

ADD myapp.cfg /etc/myapp/
ADD myapp /bin/

EXPOSE 9001
ENTRYPOINT ["/bin/myapp", "-c", "/etc/myapp/myapp.cfg"]

Tag summary

Content type

Image

Digest

Size

151.7 kB

Last updated

about 8 years ago

docker pull vredens/scratch