fix build, add dockerignore

This commit is contained in:
Von Random 2025-01-31 14:30:11 +02:00
parent be95d4f542
commit 21d1d905a7
2 changed files with 9 additions and 2 deletions

7
.dockerignore Normal file
View file

@ -0,0 +1,7 @@
.dockerignore
.git
configs
requirements.txt
**/*.pyc
**/__pycache__
README.md

View file

@ -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