Nagy Károly Gábriel
9 years ago
3 changed files with 47 additions and 0 deletions
@ -0,0 +1,24 @@
|
||||
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} |
||||
|
||||
USER ${USER} |
||||
WORKDIR $HOME |
||||
# Get Anopa |
||||
RUN cd ${HOME} |
||||
RUN wget http://jjacky.com/anopa/anopa-0.2.0.tar.gz |
||||
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"] |
||||
#ENTRYPOINT ["sh"] |
@ -0,0 +1,7 @@
|
||||
#!/bin/sh |
||||
|
||||
set -eux |
||||
|
||||
TAG="$USER/alpine-sdk" |
||||
|
||||
exec docker build --rm -t "$TAG" . |
Loading…
Reference in new issue