forked from complotti/dataEconomy
Ligtweight dockerfile
This commit is contained in:
parent
bd64005c48
commit
72af9f7e5f
1 changed files with 3 additions and 6 deletions
|
@ -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"]
|
||||||
|
|
Loading…
Reference in a new issue