From aa4b3f90ce984ba70c951982df20304488b7b8f8 Mon Sep 17 00:00:00 2001 From: Damyan Yordanov Date: Thu, 25 Jan 2024 09:09:53 +0100 Subject: [PATCH] Add Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..abf9a0d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.11 AS builder +COPY requirements.txt . + +RUN pip install --user -r requirements.txt + +FROM python:3.11-slim +WORKDIR /code + +# copy only the dependencies installation from the 1st stage image +COPY --from=builder /root/.local /root/.local +COPY ./src . + +# update PATH environment variable +ENV PATH=/root/.local:$PATH + +ENTRYPOINT [ "python", "./auto_submit_tips.py" ]