initial
This commit is contained in:
34
Dockerfile
Normal file
34
Dockerfile
Normal 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
|
||||
Reference in New Issue
Block a user