luet/Dockerfile
2020-05-26 21:07:18 +02:00

12 lines
291 B
Docker

FROM golang as builder
RUN apt-get update && apt-get install upx
ADD . /luet
RUN cd /luet && make build-small
FROM scratch
ENV LUET_NOLOCK=true
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /luet/luet /usr/bin/luet
ENTRYPOINT ["/usr/bin/luet"]