mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +02:00
add Dockerfile
This commit is contained in:
parent
02d478c6dd
commit
71c1def5c7
2 changed files with 14 additions and 0 deletions
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM golang:1.12-alpine as builder
|
||||
COPY . /go/src/github.com/documize/community
|
||||
|
||||
RUN cd /go/src/github.com/documize/community && \
|
||||
env GOOS=linux GOARCH=arm64 GODEBUG=tls13=1 go build -gcflags="all=-trimpath=$GOPATH" -o bin/documize-community-linux-amd64 ./edition/community.go
|
||||
|
||||
# build release image
|
||||
FROM alpine:3.10
|
||||
COPY --from=builder /go/src/github.com/documize/community/bin/documize-community-linux-amd64 /documize
|
||||
EXPOSE 5001
|
||||
ENTRYPOINT [ "/documize" ]
|
Loading…
Add table
Add a link
Reference in a new issue