Merge pull request #261 from liquidata-inc/aaron/dockerfile

Dockerfile: First pass at a simple Dockerfile for building an image with dolt installed.
This commit is contained in:
Aaron Son
2019-12-17 12:29:33 -08:00
committed by GitHub
2 changed files with 15 additions and 0 deletions

6
.dockerignore Normal file
View File

@@ -0,0 +1,6 @@
Jenkinsfile
bats/
proto/
samples/
benchmark/
.git/

9
Dockerfile Normal file
View File

@@ -0,0 +1,9 @@
FROM golang:1.13.5-buster as builder
WORKDIR /root/building/go
COPY ./go/ .
RUN go mod vendor
RUN go build -mod=vendor -o dolt ./cmd/dolt
FROM ubuntu:18.04
COPY --from=builder /root/building/go/dolt /usr/local/bin/dolt
ENTRYPOINT [ "/usr/local/bin/dolt" ]