From a0aa972d65b4e6dfb52e27dd8e7bc683af2e4e82 Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Sat, 1 Jul 2023 22:53:04 +1000 Subject: [PATCH] add docker --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..812c5f4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# start by pulling the python image +FROM python:3.11-alpine + +# copy the requirements file into the image +COPY ./reqs.txt /app/reqs.txt + +# switch working directory +WORKDIR /app + +# install the dependencies and packages in the requirements file +RUN pip install -r reqs.txt + +# copy every content from the local file to the image +COPY . /app + +# configure the container to run in an executed manner +ENTRYPOINT [ "python" ] + +EXPOSE 5000 + +CMD ["app.py" ] \ No newline at end of file