mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-25 18:49:36 -06:00
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:
6
.dockerignore
Normal file
6
.dockerignore
Normal file
@@ -0,0 +1,6 @@
|
||||
Jenkinsfile
|
||||
bats/
|
||||
proto/
|
||||
samples/
|
||||
benchmark/
|
||||
.git/
|
||||
9
Dockerfile
Normal file
9
Dockerfile
Normal 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" ]
|
||||
Reference in New Issue
Block a user