Add Dockerfile for demo build

pull/496/head
Kieran R. Prasch 2018-10-27 10:04:31 -07:00
parent 401cf6aa2f
commit b6cc0d991c
2 changed files with 29 additions and 0 deletions

20
deploy/docker/Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM python:3.7.0-slim-stretch
# Update
RUN apt update -y && apt upgrade -y
RUN apt install gcc libffi-dev wget -y
# Install pipenv
RUN pip3 install pipenv
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Run pipenv
RUN pipenv install --dev --python python3.7 --skip-lock --verbose
RUN pipenv run ./scripts/install_solc.sh
CMD ["/bin/bash"]

View File

@ -0,0 +1,9 @@
version: '3'
services:
nucypher:
container_name: nucypher-prometheus
build:
context: ../..
dockerfile: docker/Dockerfile
image: nucypher-prometheus