filegate/Dockerfile

12 lines
445 B
Docker

FROM git.jmbit.de/filegate/utility-containers:builder-latest AS builder
LABEL authors="Johannes Bülow <johannes.buelow@jmbit.de>"
# Get all the stuff for CGO and Podman bindings
WORKDIR /usr/local/src
COPY ./ ./
RUN go get . && go mod download && go build -v -x -race -o filegate
FROM alpine
LABEL authors="Johannes Bülow <johannes.buelow@jmbit.de>"
COPY --from=builder /usr/local/src/filegate /usr/local/bin/
CMD ["/usr/local/bin/filegate"]