From f39c920f906ba5c8403eadcdd7f02e5f866946f3 Mon Sep 17 00:00:00 2001 From: Tristan Gosselin-Hane Date: Fri, 12 Oct 2018 21:04:28 -0400 Subject: [PATCH] Add Dockerfile and docker-compose file --- Dockerfile | 13 +++++++++++++ docker-compose.yml | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..80d739e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.6.6-stretch + +WORKDIR /app + +COPY . /app + +RUN pip install --no-cache-dir pipenv \ + && python -m pipenv --three \ + && python -m pipenv install + +VOLUME "/data" + +CMD [ "python", "-m", "pipenv", "run", "./webhook-bridge.py" ] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..c93309d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: '2.3' +services: + webhook-bridge: + build: . + volumes: + - ./:/app:Z + - ./:/data:Z