1
0
Fork 0
nemubot/Dockerfile

21 lines
599 B
Docker
Raw Normal View History

2021-05-10 18:47:00 +00:00
FROM python:alpine
2020-10-18 14:14:00 +00:00
WORKDIR /usr/src/app
2022-01-06 10:19:13 +00:00
COPY requirements.txt /usr/src/app/
RUN apk add --no-cache bash build-base capstone-dev mandoc-doc man-db w3m youtube-dl aspell aspell-fr && \
2020-10-18 14:14:00 +00:00
pip install --no-cache-dir -r requirements.txt && \
2022-01-06 10:19:13 +00:00
pip install bs4 capstone dnspython && \
2022-01-06 13:10:30 +00:00
apk del build-base capstone-dev && \
ln -s /var/lib/nemubot/home /home/nemubot
2020-10-18 14:14:00 +00:00
VOLUME /var/lib/nemubot
2022-01-06 10:19:13 +00:00
COPY . /usr/src/app/
2020-10-18 14:14:00 +00:00
2022-01-06 10:19:13 +00:00
RUN ./setup.py install
2020-10-18 14:14:00 +00:00
2022-01-06 10:19:13 +00:00
WORKDIR /var/lib/nemubot
USER guest
ENTRYPOINT [ "python", "-m", "nemubot", "-d", "-P", "", "-M", "/usr/src/app/modules" ]
2020-10-18 14:14:00 +00:00
CMD [ "-D", "/var/lib/nemubot" ]