Skip to content

Instantly share code, notes, and snippets.

@collin
Created April 1, 2017 10:16
Embed
What would you like to do?
version: '2'
services:
openie:
build: '.'
volumes:
- .:/app
FROM alpine:3.5
ENV SBT_VERSION 0.13.11
ENV SBT_HOME /usr/local/sbt
ENV PATH ${PATH}:${SBT_HOME}/bin
RUN apk add --no-cache openjdk7 curl
RUN curl -sL "http://dl.bintray.com/sbt/native-packages/sbt/$SBT_VERSION/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local && \
echo -ne "- with sbt $SBT_VERSION\n" >> /root/.built
RUN apk add --no-cache bash bash-doc bash-completion
WORKDIR /app
mkdir openie-runner
cd openie-runner # copy the Dockerfile and docker-compose.yml into this directory
git clone https://github.com/allenai/openie-standalone.git
docker-compose run openie bash
sbt compile
cd openie-standalone
sbt "runMain edu.knowitall.openie.OpenIECli --usage"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment