Skip to content

Instantly share code, notes, and snippets.

@DanH42
Last active January 10, 2019 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanH42/4bcb571c10a6a61fb599160287fadc18 to your computer and use it in GitHub Desktop.
Save DanH42/4bcb571c10a6a61fb599160287fadc18 to your computer and use it in GitHub Desktop.
Alpine on Alpine
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