From e68e9ce387c788d73a578ea6eb42fcfef0c89233 Mon Sep 17 00:00:00 2001 From: William Braxton Date: Mon, 16 Feb 2026 18:31:45 -0500 Subject: [PATCH 1/2] created dockerfile --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..51c9d71 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM python:3.11-slim + +WORKDIR /app + +ARG CONFIGFILE=settings.cfg.sample + +COPY . . + +RUN cp ${CONFIGFILE} settings.cfg + +RUN pip install -r requirements.txt + +EXPOSE 5000 + +CMD ["python", "app.py"] \ No newline at end of file From 9fd6064eb843d796db23a6322454dde237401783 Mon Sep 17 00:00:00 2001 From: William Braxton Date: Mon, 16 Feb 2026 18:44:09 -0500 Subject: [PATCH 2/2] made build crash without a settings cfg file --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 51c9d71..43fcaac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,9 @@ FROM python:3.11-slim WORKDIR /app -ARG CONFIGFILE=settings.cfg.sample - COPY . . -RUN cp ${CONFIGFILE} settings.cfg +RUN test -f settings.cfg || (echo "Error: settings.cfg not found" && exit 1) RUN pip install -r requirements.txt