github.com/khulnasoft-lab/tunnel-db@v0.0.0-20231117205118-74e1113bd007/Dockerfile (about) 1 FROM golang:1.17-alpine as builder 2 3 ARG DB_TYPE=tunnel 4 5 WORKDIR /build 6 COPY . /build 7 SHELL ["/bin/sh", "-o", "pipefail", "-c"] 8 9 RUN apk --no-cache add make gzip 10 11 RUN DB_TYPE=${DB_TYPE} make db-all 12 13 FROM scratch 14 COPY --from=builder /build/assets/tunnel*.db.gz .