added docker and makefile

This commit is contained in:
2025-02-16 15:26:58 -05:00
parent 311561c62d
commit 5bf07dad16
2 changed files with 23 additions and 0 deletions
+16
View File
@@ -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"]
+7
View File
@@ -0,0 +1,7 @@
all: build run
build:
docker build -t static-sites .
run:
docker run -p 5121:5121 static-sites -d