Mercurial > public > python-black-scholes
diff Dockerfile @ 2:3eb56c7efd31
add build config
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Tue, 16 Nov 2021 17:44:53 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Dockerfile Tue Nov 16 17:44:53 2021 +0100 @@ -0,0 +1,16 @@ +# syntax=docker/dockerfile:1 + +# Install Python image +FROM python:3.8-slim-buster + +# Create working directory and install dependencies +WORKDIR /fucking-black-sholes + +# Copy files +COPY . . + +# Install package +RUN ["python", "setup.py", "install"] + +# Test package +CMD fbs --spot-price=20.00 --exercise-price=21.00 --risk-free-rate=0.05 --std=0.25 --expiration=0.5 \ No newline at end of file