mirror of
https://git.netzspielplatz.de/docker-multiarch/prosody-filer.git
synced 2025-11-08 17:19:28 +00:00
14 lines
491 B
Docker
14 lines
491 B
Docker
# build stage
|
|
FROM golang:alpine AS build-env
|
|
RUN apk --no-cache add build-base git gcc
|
|
RUN go get github.com/ThomasLeister/prosody-filer
|
|
RUN cd $GOPATH/src/github.com/ThomasLeister/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 /go/bin/prosody-filer /app/
|
|
ENTRYPOINT /app/prosody-filer
|