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
|
||||
|
||||
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"]
|
||||
|
|
Loading…
Reference in a new issue