summaryrefslogblamecommitdiff
path: root/Dockerfile
blob: 1dc5eb627aa117852c9219830c4ae4479ed556d9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                
                               



                 
# 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
COPY --from=go /app/html ./html

EXPOSE 8000

CMD ["./nixshare"]