irccat a simple tool that reads from standard input (stdin) and posts the read message to a target IRC channel on a specified server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

28 lines
451 B

# Build
FROM golang:alpine AS build
ARG TAG
ARG BUILD
ENV APP irccat
ENV REPO prologic/$APP
RUN apk add --update git make build-base && \
rm -rf /var/cache/apk/*
WORKDIR /go/src/github.com/$REPO
COPY . /go/src/github.com/$REPO
RUN make TAG=$TAG BUILD=$BUILD build
# Runtime
FROM alpine
ENV APP irccat
ENV REPO prologic/$APP
LABEL irccat.app main
COPY --from=build /go/src/github.com/${REPO}/${APP} /${APP}
ENTRYPOINT ["/irccat"]
CMD [""]