From 21d1d905a779d3ee33507d63171998d3ca932ab6 Mon Sep 17 00:00:00 2001 From: Von Random Date: Fri, 31 Jan 2025 14:30:11 +0200 Subject: [PATCH] fix build, add dockerignore --- .dockerignore | 7 +++++++ Dockerfile | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .dockerignore 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