diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8af30c0 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.12 +WORKDIR /usr/local/app + +# Install the application dependencies +COPY requirements.txt ./ +RUN pip install --no-cache-dir -r requirements.txt + +# Copy in the source code +COPY src ./src +EXPOSE 5000 + +# Setup an app user so the container doesn't run as the root user +RUN useradd app +USER app + +CMD ["flask", "--app", "build", "run"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..748c821 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,11 @@ +blinker==1.9.0 +click==8.1.8 +Flask==3.1.0 +importlib_metadata==8.6.1 +itsdangerous==2.2.0 +Jinja2==3.1.5 +Markdown==3.7 +MarkupSafe==3.0.2 +PyYAML==6.0.2 +Werkzeug==3.1.3 +zipp==3.21.0