mmflokati/Dockerfile

38 lines
889 B
Docker

FROM golang:latest
MAINTAINER Andreas Neue <an@dnix.de>
RUN apt-get -y --force-yes update
RUN apt-get -y --force-yes upgrade
#RUN apt-get install -y ca-certificates
RUN apt-get install -y fortune vim
#RUN apt-get clean
RUN mkdir /app
ADD . /app/
WORKDIR /app
RUN go get -d ./...
RUN go build -o mmflokati .
CMD ["/app/mmflokati"]
#FROM ubuntu:16.04
#MAINTAINER Andreas Neue <an@dnix.de>
#
#RUN apt-get -y --force-yes update
#RUN apt-get -y --force-yes upgrade
#RUN apt-get install -y ca-certificates
#RUN apt-get install -y fortune vim
#RUN apt-get clean
#
#RUN mkdir /mmflokati
#
#COPY mmflokati /mmflokati/mmflokati
#COPY newsfeeds.conf /mmflokati/newsfeeds.conf
#COPY fortunes /mmflokati/fortunes
#
#ENV PATH $PATH:/mmflokati
#
#WORKDIR /mmflokati
#CMD [ "/mmflokati/mmflokati", "-server=irc.dnix.de:6667", "-name=Flokati", "-chan=#test", "-nsname=N", "-nspass=t0ps3cr37" ]