From 72af9f7e5fb5a086a2cd34735dfd2fab93a4672b Mon Sep 17 00:00:00 2001 From: Alex Myasoedov Date: Tue, 7 Feb 2017 20:02:51 -0500 Subject: [PATCH] Ligtweight dockerfile --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb4c047..694b958 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ -FROM golang:onbuild - -RUN mkdir -p /app +FROM alpine:3.5 WORKDIR /app ADD . /app - -RUN go build ./main.go - +EXPOSE 8080 +ENV GIN_MODE=release CMD ["./main"]