mirror of
https://github.com/ION606/static-site-hosting.git
synced 2026-05-14 22:16:54 +00:00
added docker and makefile
This commit is contained in:
+16
@@ -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"]
|
||||||
Reference in New Issue
Block a user