A simple server for serving our SpaceAPI interactively.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

25 lines
533 B

FROM golang:1.14.4-alpine AS builder
ENV CGO_ENABLED=0
WORKDIR /build
COPY go.mod go.sum /build/
RUN go mod download && go mod verify
COPY . .
RUN go test ./...
RUN go install -v -tags netgo -ldflags "-w" ./cmd/spaceapi-server
FROM busybox
LABEL maintainer="Xperimental"
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /go/bin/spaceapi-server /bin/spaceapi-server
RUN mkdir /data
EXPOSE 8080
WORKDIR /data
VOLUME [ "/data" ]
ENTRYPOINT [ "/bin/spaceapi-server" ]