docker-gophernicus/Dockerfile

24 lines
742 B
Text
Raw Normal View History

2020-05-25 23:35:40 -04:00
FROM alpine:latest AS builder
ARG XINETD_VERSION=2.3.15.4
2021-01-10 23:38:02 -05:00
ARG VERSION=3.1.1
2020-05-25 23:35:40 -04:00
RUN apk add build-base autoconf automake libtool pkgconf git
RUN git clone -b ${XINETD_VERSION} https://github.com/openSUSE/xinetd.git
RUN cd xinetd && sh ./autogen.sh && ./configure && make
RUN git clone -b ${VERSION} https://github.com/gophernicus/gophernicus.git
2021-01-10 23:38:02 -05:00
RUN cd gophernicus && ./configure && make
2020-05-25 23:35:40 -04:00
FROM alpine:latest
EXPOSE 70/tcp
VOLUME /var/gopher
2020-05-27 00:46:45 -04:00
RUN mkdir -p /etc/xinetd.d/
RUN mkdir -p /var/gopher
2020-05-25 23:35:40 -04:00
COPY --from=builder /xinetd/xinetd /usr/sbin
2021-01-10 23:38:02 -05:00
COPY --from=builder /gophernicus/src/gophernicus /usr/sbin
COPY --from=builder /gophernicus/gophermap.sample /var/gopher/gophermap
2020-05-25 23:35:40 -04:00
COPY xinetd.conf /etc/xinetd.conf
COPY init.sh /init.sh
2020-05-25 23:35:40 -04:00
CMD ["/init.sh"]