github.com/fasmat/buffalo@v0.11.0/Dockerfile.build (about) 1 FROM golang:1.9.0 2 3 RUN go version 4 5 RUN apt-get update 6 RUN curl -sL https://deb.nodesource.com/setup_8.x | bash 7 RUN apt-get install -y build-essential nodejs 8 RUN apt-get install -y sqlite3 libsqlite3-dev 9 RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" >> /etc/apt/sources.list.d/pgdg.list' 10 RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add - 11 RUN apt-get install -y postgresql postgresql-contrib libpq-dev 12 RUN apt-get install -y -q mysql-client 13 RUN apt-get install -y vim 14 RUN go get -u github.com/golang/dep/cmd/dep 15 RUN npm install -g --no-progress yarn 16 RUN yarn config set yarn-offline-mirror /npm-packages-offline-cache 17 RUN yarn config set yarn-offline-mirror-pruning true 18 19 ENV BP=$GOPATH/src/github.com/gobuffalo/buffalo 20 21 RUN mkdir -p $BP 22 WORKDIR $BP 23 ADD . . 24 25 RUN go get -v -t ./... 26 27 # cache yarn packages to an offline mirror so they're faster to load. hopefully. 28 RUN grep -v '{{' ./generators/assets/webpack/templates/package.json.tmpl > package.json 29 RUN yarn install --no-progress 30 31 RUN buffalo version 32 33 WORKDIR $GOPATH/src 34 35 RUN ls -la /npm-packages-offline-cache 36 37 EXPOSE 3000