Skip to content

Instantly share code, notes, and snippets.

View SoldierCorp's full-sized avatar
🏠
Working from home

Edgardo Ramírez SoldierCorp

🏠
Working from home
View GitHub Profile
@SoldierCorp
SoldierCorp / Dockerfile
Created January 28, 2019 21:36
Dockerfile to create a small container for Golang
############################
# STEP 1 build executable binary
############################
FROM golang:alpine as builder
# Install git + SSL ca certificates.
# Git is required for fetching the dependencies.
# Ca-certificates is required to call HTTPS endpoints.
RUN apk update && apk add --no-cache git ca-certificates gcc g++ libc-dev && update-ca-certificates
# Create appuser
RUN adduser -D -g '' appuser