Last active
January 10, 2019 22:12
-
-
Save DanH42/4bcb571c10a6a61fb599160287fadc18 to your computer and use it in GitHub Desktop.
Alpine on Alpine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine | |
RUN apk add --no-cache wget build-base ncurses-dev openssl-dev | |
RUN wget -qO /tmp/alpine-2.21.tar.xz http://alpine.x10host.com/alpine/release/src/alpine-2.21.tar.xz | |
RUN tar xf /tmp/alpine-2.21.tar.xz -C /tmp && rm /tmp/alpine-2.21.tar.xz | |
WORKDIR /tmp/alpine-2.21 | |
RUN ./configure && make && make install | |
RUN ln -s alpine /usr/local/bin/pine | |
RUN addgroup -g 1000 alpine && adduser -u 1000 -G alpine -s /bin/sh -D alpine | |
WORKDIR /home/alpine | |
RUN rm -rf /tmp/alpine-2.21 | |
RUN apk del wget build-base | |
USER alpine | |
RUN mkdir /home/alpine/mail | |
VOLUME /home/alpine/mail | |
CMD ["alpine"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment