Added Dockerfile
This commit is contained in:
parent
7316daa317
commit
4179c43f0f
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@ -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"]
|
||||||
11
requirements.txt
Normal file
11
requirements.txt
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user