From 8135006d03f8e64c20425dfd6f8e49172c59bbe1 Mon Sep 17 00:00:00 2001 From: rehan6099 <103304908+rehan6099@users.noreply.github.com> Date: Thu, 26 May 2022 12:11:22 +0530 Subject: [PATCH] run applicatio --- Dockerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a1402d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +# this is my base image +FROM alpine:3.5 + +# Install python and pip +RUN apk add --update py2-pip + +# install Python modules needed by the Python app +COPY requirements.txt /usr/src/app/ +RUN pip install --no-cache-dir -r /usr/src/app/requirements.txt + +# copy files required for the app to run +COPY app.py /usr/src/app/ +COPY templates/index.html /usr/src/app/templates/ + +# tell the port number the container should expose +EXPOSE 5000 + +# run the application +CMD ["python", "/usr/src/app/app.py"]