1
0
Fork 0

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 FROM alpine:3.5
RUN mkdir -p /app
WORKDIR /app WORKDIR /app
ADD . /app ADD . /app
EXPOSE 8080
RUN go build ./main.go ENV GIN_MODE=release
CMD ["./main"] CMD ["./main"]