This will build a docker container with anopa
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.

24 lines
698 B

FROM gliderlabs/alpine:edge
RUN apk add --update alpine-sdk s6 strace linux-headers skalibs-dev s6-dev
RUN rm -rf /var/cache/apk/*
ENV USER karasz
ENV HOME /home/${USER}
RUN addgroup -g 1500 builder
RUN adduser ${USER} -h ${HOME} -s /bin/sh -u 1000 -G builder -D
RUN echo "${USER} ALL=(root) NOPASSWD: ALL" > /etc/sudoers.d/${USER}
# Get Anopa
RUN cd ${HOME}
RUN wget
RUN tar xzvf anopa-0.2.0.tar.gz
RUN cd anopa-0.2.0 && ./configure --prefix=/usr && make clean && make && sudo make install
RUN sudo mkdir -p /etc/anopa/env
RUN sudo ln -svf /usr/libexec/aa-stage1 /sbin/init
ENTRYPOINT ["/sbin/init"]