Skip to content

Instantly share code, notes, and snippets.

@solarce
Created March 12, 2015 16:30
Show Gist options
  • Save solarce/864e41fe67505826f7ff to your computer and use it in GitHub Desktop.
Save solarce/864e41fe67505826f7ff to your computer and use it in GitHub Desktop.
# Ubuntu Precise full with pkgsrc bootstrapped into /home/ubuntu
FROM solarce/dockerfile-ubuntu-precise-full:latest
MAINTAINER Brandon Burton <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
# Setup pkgsrc
# Steps modified from http://www.codeghar.com/blog/pkgsrc-on-linux-quickstart-guide.html
RUN adduser --shell /bin/bash --gecos "User for builds" --disabled-password --home /home/ubuntu ubuntu
ENV BUILD_DIR /home/ubuntu
USER ubuntu
WORKDIR $BUILD_DIR
RUN git clone --depth 1 https://github.com/jsonn/pkgsrc.git
ENV SH /bin/bash
RUN cd $BUILD_DIR/pkgsrc/bootstrap && ./bootstrap --unprivileged --prefix=$BUILD_DIR/opt --workdir=$BUILD_DIR/work
RUN ls $BUILD_DIR/opt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment