mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-29 03:06:35 -05:00
66ee29542e
* noms cat command to display the contents of an nbs file * noms manifest command
25 lines
469 B
Docker
25 lines
469 B
Docker
FROM golang:latest AS build
|
|
|
|
ENV NOMS_SRC=$GOPATH/src/github.com/attic-labs/noms
|
|
ENV CGO_ENABLED=0
|
|
ENV GOOS=linux
|
|
ENV NOMS_VERSION_NEXT=1
|
|
|
|
RUN mkdir -pv $NOMS_SRC
|
|
COPY . ${NOMS_SRC}
|
|
RUN go test github.com/attic-labs/noms/...
|
|
RUN go install -v github.com/attic-labs/noms/cmd/noms
|
|
RUN cp $GOPATH/bin/noms /bin/noms
|
|
|
|
FROM alpine:latest
|
|
|
|
COPY --from=build /bin/noms /bin/noms
|
|
|
|
VOLUME /data
|
|
EXPOSE 8000
|
|
|
|
ENV NOMS_VERSION_NEXT=1
|
|
ENTRYPOINT [ "noms" ]
|
|
|
|
CMD ["serve", "/data"]
|