1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-25 08:09:43 +02:00

Merge pull request #307 from dereknex/docker-build

Build Documize with docker
This commit is contained in:
Harvey Kandola 2019-08-15 13:54:53 +01:00 committed by GitHub
commit f8bb879a70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,6 @@
.DS_Store
.git
bin
.idea
selfcert
gui

11
Dockerfile Normal file
View 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=amd64 GODEBUG=tls13=1 go build -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" ]