This commit is contained in:
parent
faa5759645
commit
5ec2f2997b
2 changed files with 51 additions and 0 deletions
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
FROM python:alpine as pybuild
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY requirements.txt ./
|
||||
RUN apk add --no-cache bash build-base capstone-dev && \
|
||||
pip install --no-cache-dir -r requirements.txt && \
|
||||
pip install bs4 capstone dnspython
|
||||
|
||||
|
||||
FROM python:alpine
|
||||
|
||||
RUN apk add --no-cache capstone w3m
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
VOLUME /var/lib/nemubot
|
||||
|
||||
COPY requirements.txt ./
|
||||
|
||||
COPY --from=pybuild /usr/lib/python3.9 /usr/lib/python3.9
|
||||
COPY . .
|
||||
|
||||
ENTRYPOINT [ "python", "-m", "nemubot", "-d", "-M", "/usr/src/app/modules" ]
|
||||
CMD [ "-D", "/var/lib/nemubot" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue