mirror of
https://git.netzspielplatz.de/docker-multiarch/prosody-filer.git
synced 2025-11-08 18:59:29 +00:00
hopefully fixed the go get deprecation stuff
This commit is contained in:
parent
70cebca431
commit
48d9c19d8c
1 changed files with 3 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
# 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 go get github.com/ThomasLeister/prosody-filer
|
RUN cd /tmp; git clone https://github.com/ThomasLeister/prosody-filer.git
|
||||||
RUN cd $GOPATH/src/github.com/ThomasLeister/prosody-filer; \
|
RUN cd /tmp/prosody-filer; \
|
||||||
VERSIONSTRING="$(git describe --tags --exact-match || 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 ..." \
|
||||||
./build.sh
|
./build.sh
|
||||||
|
|
@ -10,5 +10,5 @@ RUN cd $GOPATH/src/github.com/ThomasLeister/prosody-filer; \
|
||||||
# final stage
|
# final stage
|
||||||
FROM alpine
|
FROM alpine
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=build-env /go/bin/prosody-filer /app/
|
COPY --from=build-env /tmp/prosody-filer/prosody-filer /app/
|
||||||
ENTRYPOINT /app/prosody-filer
|
ENTRYPOINT /app/prosody-filer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue