Ligtweight dockerfile

This commit is contained in:
Alex Myasoedov 2017-02-07 20:02:51 -05:00
parent bd64005c48
commit 72af9f7e5f

View file

@ -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"]