add experimental dockerrfile
This commit is contained in:
parent
fdb0cef80c
commit
42526e9c53
1 changed files with 11 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM golang:latest
|
||||
WORKDIR /go/src/github.com/gempir/justlog
|
||||
COPY . .
|
||||
RUN go get ./...
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||
|
||||
FROM alpine:latest
|
||||
RUN apk --no-cache add ca-certificates
|
||||
COPY --from=0 /go/src/github.com/gempir/justlog/app .
|
||||
CMD ["./app --config=/etc/justlog.json"]
|
||||
EXPOSE 8025
|
Loading…
Add table
Reference in a new issue