From 317b371977f09a431b013b3f2fbab15fe2053662 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sun, 1 Jun 2025 01:07:20 +0300 Subject: [PATCH] fix --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 70167b4..6f8d342 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,14 @@ FROM docker:dind ENV PYTHONUNBUFFERED=1 RUN apk add --update --no-cache python3 py3-pip && ln -sf python3 /usr/bin/python +RUN mkdir /code +WORKDIR /code RUN python3 -m venv venv RUN venv/bin/python3 -m ensurepip RUN venv/bin/pip3 install --no-cache --upgrade pip setuptools -RUN mkdir /code -WORKDIR /code COPY requirements.txt requirements.txt -RUN ls venv/bin RUN venv/bin/pip3 install requirements.txt +COPY . . ENTRYPOINT [ "venv/bin/python3", "main.py" ] \ No newline at end of file