From 58ed658aecaeba6e479c2ed66c8274bde0a74f4f Mon Sep 17 00:00:00 2001 From: John Andersen Date: Wed, 20 May 2020 16:38:36 -0700 Subject: [PATCH] runme update Signed-off-by: John Andersen --- .runme/Dockerfile | 4 +++- .runme/config.yaml | 2 +- .runme/rundffml | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100755 .runme/rundffml diff --git a/.runme/Dockerfile b/.runme/Dockerfile index 5067754de3..fd0f4849d4 100644 --- a/.runme/Dockerfile +++ b/.runme/Dockerfile @@ -1,5 +1,7 @@ FROM python:3.7 -RUN mkdir /app && \ +COPY .runme/rundffml /usr/local/bin/rundffml +RUN chmod 755 /usr/local/bin/rundffml && \ + mkdir /app && \ pip install -U pip setuptools && \ pip install \ dffml \ diff --git a/.runme/config.yaml b/.runme/config.yaml index 44d6e7e874..39a01e6c79 100644 --- a/.runme/config.yaml +++ b/.runme/config.yaml @@ -2,7 +2,7 @@ version: 1.0 publish: app services: app: - command: python -m dffml service http server -insecure -cors '*' -addr 0.0.0.0 -port 8080 -upload-dir . -log debug + command: rundffml build: type: dockerfile config: ./.runme/Dockerfile diff --git a/.runme/rundffml b/.runme/rundffml new file mode 100755 index 0000000000..a0be41aa1d --- /dev/null +++ b/.runme/rundffml @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +exec python -m dffml service http server -insecure -cors '*' -addr 0.0.0.0 -port 8080 -upload-dir . -log debug