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