diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..732af27 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +.dockerignore +.git +configs +requirements.txt +**/*.pyc +**/__pycache__ +README.md diff --git a/Dockerfile b/Dockerfile index 1bcd2ce..dfb9a3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ FROM python:alpine3.21 -WORKDIR /pgbot - +COPY requirements.txt . ENV PIP_ROOT_USER_ACTION=ignore RUN pip install -r requirements.txt +WORKDIR /pgbot COPY . . CMD /pgbot/pgbot