this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

initial Dockerfile for bigsky

+31
+31
cmd/bigsky/Dockerfile
··· 1 + # Run this dockerfile from the top level of the indigo git repository like: 2 + # 3 + # podman build -f ./cmd/bigsky/Dockerfile -t bigsky . 4 + 5 + ### Compile stage 6 + 7 + # trouble with 'No such file or directory' when building using 'golang:1.19' 8 + # images, I think because of library errors when copied to 'alpine' image below 9 + # https://megamorf.gitlab.io/2019/09/08/alpine-go-builds-with-cgo-enabled/ 10 + # TODO: lock to a specific version of go toolchain 11 + FROM alpine:3.17 AS build-env 12 + RUN apk add --no-cache build-base make go 13 + 14 + ADD . /dockerbuild 15 + WORKDIR /dockerbuild 16 + 17 + RUN go build -o /bigsky ./cmd/bigsky 18 + 19 + ### Run stage 20 + FROM alpine:3.17 21 + 22 + RUN apk add --no-cache --update dumb-init 23 + ENTRYPOINT ["dumb-init", "--"] 24 + 25 + WORKDIR / 26 + RUN mkdir -p data/bigsky 27 + COPY --from=build-env /bigsky / 28 + 29 + EXPOSE 2470 30 + 31 + CMD ["/bigsky"]