From 848cb378bc9520aa073cf82ed3f00afac925a54e Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 8 Jan 2021 12:09:27 +1100 Subject: [PATCH] TODO-24 (in docker) DONE --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f9b3e28 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM ubuntu:20.04 +WORKDIR /code +RUN apt-get update && apt-get -y install python3-pip python3-psycopg2 libpq-dev +COPY requirements.txt requirements.txt +RUN pip3 install -r requirements.txt +EXPOSE 5000 +COPY . . +CMD ["python3", "/code/main.py"]