1
0
Fork 0
mirror of https://github.com/alice-lg/birdwatcher.git synced 2025-03-09 00:00:05 +01:00
birdwatcher/Dockerfile

31 lines
549 B
Text
Raw Permalink Normal View History

2019-12-23 16:48:43 +01:00
#
# Birdwatcher - Your friendly alice looking glass data source
#
FROM golang:1.13 AS app
WORKDIR /src/birdwatcher
ADD vendor .
ADD go.mod .
ADD go.sum .
RUN go mod download
# Add sourcecode
ADD . .
# Build birdwatcher
RUN make
2019-12-23 17:17:43 +01:00
# Add birdwatcher to bird
2019-12-23 16:48:43 +01:00
FROM ehlers/bird2
COPY --from=app /src/birdwatcher/birdwatcher-linux-amd64 /usr/bin/birdwatcher
ADD etc/birdwatcher/birdwatcher.conf /etc/birdwatcher/birdwatcher.conf
2019-12-23 17:17:43 +01:00
EXPOSE 29184/tcp
EXPOSE 29186/tcp
2019-12-23 16:48:43 +01:00
ENTRYPOINT ["/usr/bin/birdwatcher", "-config", "/etc/birdwatcher/birdwatcher.conf"]