# build stage FROM golang:alpine AS build-env RUN apk --no-cache add build-base git gcc RUN cd /tmp; git clone https://github.com/ThomasLeister/prosody-filer.git RUN cd /tmp/prosody-filer; \ VERSIONSTRING="$(git describe --tags --exact-match || git rev-parse --short HEAD)"; \ echo "Building version ${VERSIONSTRING} of Prosody-Filer ..." \ ./build.sh # final stage FROM alpine WORKDIR /app COPY --from=build-env /tmp/prosody-filer/prosody-filer /app/ ENTRYPOINT /app/prosody-filer