From b71253f220e4b9e9cb0ce8805800c1dcac250625 Mon Sep 17 00:00:00 2001 From: legonzaur Date: Fri, 26 Apr 2024 18:02:18 +0200 Subject: [PATCH] add dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c5ba2b5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM python:alpine3.19 +WORKDIR /usr/app + +ENV VIRTUAL_ENV=/opt/venv +RUN python3 -m venv $VIRTUAL_ENV +ENV PATH="$VIRTUAL_ENV/bin:$PATH" + +COPY requirements.txt . +RUN pip install -r requirements.txt +COPY src . + + +CMD ["python3", "-u", "main.py"] \ No newline at end of file