From 5bf07dad1616669ec2db0b05e407be9bce8817c3 Mon Sep 17 00:00:00 2001 From: ION606 Date: Sun, 16 Feb 2025 15:26:58 -0500 Subject: [PATCH] added docker and makefile --- Dockerfile | 16 ++++++++++++++++ Makefile | 7 +++++++ 2 files changed, 23 insertions(+) create mode 100644 Dockerfile create mode 100644 Makefile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..67770ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.9-slim + +# disable buffering to show logs in real time +ENV PYTHONUNBUFFERED=1 + +# set working directory to /app +WORKDIR /app + +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +EXPOSE 5121 + +CMD ["python", "app.py"] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d81c94f --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +all: build run + +build: + docker build -t static-sites . + +run: + docker run -p 5121:5121 static-sites -d