blob: 1035e2bc9312b8dbfae730cac9325bfaa3d40b4c (
plain) (
tree)
|
|
# syntax=docker/dockerfile:1
FROM gitrepo.ru/base/go:latest AS go
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go generate && CGO_ENABLED=0 GOOS=linux go build -o nixshare
FROM scratch
WORKDIR /app
COPY --from=go /app/nixshare ./nixshare
EXPOSE 8000
CMD ["./nixshare"]
|