Skip to content

Instantly share code, notes, and snippets.

@gbolo
Last active March 13, 2017 23:54
Show Gist options
  • Save gbolo/054e0c295089fa604f5aee2513dd8e8b to your computer and use it in GitHub Desktop.
Save gbolo/054e0c295089fa604f5aee2513dd8e8b to your computer and use it in GitHub Desktop.
tinyapi dockerfile from scratch
# Building A Tiny but Functional Docker Container
FROM scratch
LABEL maintainer "George Bolo <[email protected]>"
# Install Application - github.com/gbolo/go-tinyapi
ENV TINYAPI_CFG_PATH /etc/tinyapi
ADD tinyapi /bin/tinyapi
ADD config.yml ${TINYAPI_CFG_PATH}/config.yml
# This application requires CA bundle for outbound HTTPS calls
ADD cacert-2017-01-18.pem /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
EXPOSE 8080
ENTRYPOINT ["/bin/tinyapi"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment