fix build, add dockerignore
This commit is contained in:
parent
be95d4f542
commit
21d1d905a7
2 changed files with 9 additions and 2 deletions
7
.dockerignore
Normal file
7
.dockerignore
Normal file
|
@ -0,0 +1,7 @@
|
|||
.dockerignore
|
||||
.git
|
||||
configs
|
||||
requirements.txt
|
||||
**/*.pyc
|
||||
**/__pycache__
|
||||
README.md
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue