mirror of
https://git.netzspielplatz.de/docker-multiarch/prosody-filer.git
synced 2025-11-08 22:29:32 +00:00
Compare commits
No commits in common. "f1d6ae9509b946ebac32422b531a4d75855b851f" and "70cebca431e6222921e671e3ceb5e9504ae960f3" have entirely different histories.
f1d6ae9509
...
70cebca431
1 changed files with 6 additions and 6 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -1,14 +1,14 @@
|
||||||
# build stage
|
# build stage
|
||||||
FROM golang:alpine AS build-env
|
FROM golang:alpine AS build-env
|
||||||
RUN apk --no-cache add build-base git gcc
|
RUN apk --no-cache add build-base git gcc
|
||||||
RUN cd /tmp; git clone https://github.com/ThomasLeister/prosody-filer.git
|
RUN go get github.com/ThomasLeister/prosody-filer
|
||||||
RUN cd /tmp/prosody-filer; \
|
RUN cd $GOPATH/src/github.com/ThomasLeister/prosody-filer; \
|
||||||
VERSIONSTRING="$(git describe --tags --exact-match 2> /dev/null || git rev-parse --short HEAD)"; \
|
VERSIONSTRING="$(git describe --tags --exact-match || git rev-parse --short HEAD)"; \
|
||||||
echo "Building version ${VERSIONSTRING} of Prosody-Filer ..."; \
|
echo "Building version ${VERSIONSTRING} of Prosody-Filer ..." \
|
||||||
CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -w -s -X main.versionString=${VERSIONSTRING}" prosody-filer.go;
|
./build.sh
|
||||||
|
|
||||||
# final stage
|
# final stage
|
||||||
FROM alpine
|
FROM alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build-env /tmp/prosody-filer/prosody-filer /app/
|
COPY --from=build-env /go/bin/prosody-filer /app/
|
||||||
ENTRYPOINT /app/prosody-filer
|
ENTRYPOINT /app/prosody-filer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue