From 7ed324810466e2a6f87d16f669eda7d5c62b4007 Mon Sep 17 00:00:00 2001 From: ABeltramo Date: Mon, 1 Mar 2021 20:45:49 +0000 Subject: [PATCH] Docker updates - Removed default config file from Dockerfile - added .git folder to dockerignore --- .dockerignore | 13 +++++++++++++ .gitignore | 1 + Dockerfile | 13 +++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ae20a5b --- /dev/null +++ b/.dockerignore @@ -0,0 +1,13 @@ +# Editor crud files +*~ +\#*# +.vscode +.idea +.git + +# Artifacts +__pycache__ + +# Personal +/generic-updater +/configuration.py diff --git a/.gitignore b/.gitignore index f276bd1..dfb5a99 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ *~ \#*# .vscode +.idea # Artifacts __pycache__ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..df3ef97 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:3.9-buster + +WORKDIR /workdir + +COPY ./requirements.txt /workdir/requirements.txt + +RUN pip install -r requirements.txt + +COPY . /workdir + +EXPOSE 3000 + +CMD python index.py \ No newline at end of file