From df7505d1412a3e0f78a07512099e9f1cdaaeec01 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Tue, 21 Feb 2023 10:59:48 -0600 Subject: [PATCH] Add Dockerfile and update gitignore --- .gitignore | 3 ++- Dockerfile | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore index d3b570f..9c6a216 100644 --- a/.gitignore +++ b/.gitignore @@ -56,4 +56,5 @@ pyvenv.cfg major-domo-service-creds.json get-monthly.py team-rocket* -card-creation/ \ No newline at end of file +card-creation/ +.dockerignore \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b29c2a3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM python:3.8-slim + +WORKDIR /usr/src/app + +RUN apt-get update && apt-get install -y git +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +CMD [ "python", "./majordomo.py" ] \ No newline at end of file