Docker container that powered chat.jerryaldrichiii.com (back when I ran an IRC 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.
 
 

41 lines
809 B

FROM alpine:latest as builder
RUN apk --update add git yarn npm wget unzip go make
RUN git clone --branch v1.5.1 https://github.com/kiwiirc/kiwiirc.git
WORKDIR kiwiirc
# Remove silly dice command
COPY ./nodice.patch .
RUN git apply ./nodice.patch
RUN yarn install
RUN yarn run build
WORKDIR /
RUN apk --update add go make
RUN git clone https://github.com/kiwiirc/webircgateway.git && cd webircgateway
WORKDIR webircgateway
RUN make build
FROM alpine:latest
LABEL maintainer jerryaldrichiii@gmail.com
COPY --from=builder /kiwiirc/dist /srv/kiwiirc/www
COPY --from=builder /webircgateway/webircgateway /srv/kiwiirc
EXPOSE 8080
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN adduser -H -D -s /bin/false kiwi
RUN chown -R kiwi:kiwi /srv/
USER kiwi
ENTRYPOINT ["/entrypoint.sh"]