This commit is contained in:
2018-01-28 04:44:03 -06:00
parent df5ed9c047
commit 95767ae684
14 changed files with 649 additions and 2 deletions

34
Dockerfile Normal file
View File

@@ -0,0 +1,34 @@
FROM phusion/baseimage:0.9.19
# Standard stuff
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Stuff for building steem-python
ARG BUILD_ROOT=/build
# Now we install the essentials
RUN \
apt-get update && \
apt-get install -y python3-pip
# This updates the distro-provided pip
RUN pip3 install --upgrade pip
RUN mkdir ${BUILD_ROOT}
COPY Makefile ${BUILD_ROOT}/
COPY Pipfile ${BUILD_ROOT}/
COPY Pipfile.lock ${BUILD_ROOT}/
WORKDIR ${BUILD_ROOT}
RUN pip3 install --upgrade pip && \
pip3 install --upgrade pipenv && \
pipenv install --three --dev && \
pipenv install .
COPY . ${BUILD_ROOT}
# run tests
RUN pipenv run py.test