Update dockerfile to use apt build and add quay push

This commit is contained in:
Jack Zampolin
2017-08-24 12:02:06 -07:00
parent 6ef38be64f
commit 1fa5fab539
2 changed files with 22 additions and 18 deletions

View File

@@ -1,17 +1,13 @@
# Run in Ubuntu
FROM ubuntu:xenial
# Create directory for build
RUN mkdir -p /src/blockstack
# Update apt and install wget
RUN apt update && apt install -y wget
# Copy in source files
COPY . /src/blockstack
WORKDIR /src/blockstack
# Add blockstack apt repo
RUN wget -qO - https://raw.githubusercontent.com/blockstack/packaging/master/repo-key.pub | apt-key add -
RUN echo 'deb http://packages.blockstack.com/repositories/ubuntu/ xenial main' > /etc/apt/sources.list.d/blockstack.list
# Install Dependancies
RUN apt-get update && apt-get install -y python-pip python-dev build-essential apt-utils libssl-dev libffi-dev rng-tools libgmp3-dev sudo software-properties-common sqlite3 lsof
RUN pip2 install --upgrade pip
RUN pip2 install --upgrade virtualenv
# Install blockstack
RUN apt update && apt install -y blockstack
# Build Blockstack
RUN pip2 install . --upgrade