From 282402d14f4d5f2da08092d25a55414526a4b50d Mon Sep 17 00:00:00 2001 From: mcinj <98779161+mcinj@users.noreply.github.com> Date: Fri, 22 Apr 2022 13:07:57 -0400 Subject: [PATCH] Dockerfile - Dockerfile that starts the cli.py bot --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2f95efd --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.9-alpine + +RUN mkdir -p /app +WORKDIR /app + +# resolves gcc issue with installing regex dependency +RUN apk add build-base --no-cache + +ENV VIRTUAL_ENV=/app/env +RUN python -m venv $VIRTUAL_ENV +ENV PATH="$VIRTUAL_ENV/bin:$PATH" + +COPY requirements.txt . +RUN pip3 install -r requirements.txt + +COPY ./src/* /app/ +CMD ["python", "cli.py"]