norbert/Dockerfile

12 lines
208 B
Docker

FROM nimlang/nim:alpine as builder
COPY . /build
WORKDIR /build
RUN nim c -d:release --passL:-static norbert.nim
FROM scratch
COPY --from=builder /build/norbert /norbert
USER 65534
ENTRYPOINT ["/norbert"]