2021-12-02 11:40:26 +01:00
|
|
|
FROM python:3.9-slim
|
2020-11-06 11:43:29 +01:00
|
|
|
|
|
|
|
ARG UID
|
|
|
|
ARG GID
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
ADD edmond /app/edmond
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
RUN pip install requests irc
|
|
|
|
RUN pip install -r edmond/plugins/requirements.txt
|
|
|
|
|
|
|
|
RUN groupadd --gid ${GID} edmond
|
|
|
|
RUN useradd --uid ${UID} --gid edmond \
|
|
|
|
--shell /usr/sbin/nologin --create-home --no-log-init \
|
|
|
|
edmond
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND teletype
|
2021-06-06 17:36:41 +02:00
|
|
|
STOPSIGNAL SIGINT
|
2020-11-06 11:43:29 +01:00
|
|
|
|
|
|
|
USER edmond
|
|
|
|
ENTRYPOINT ["python", "-m", "edmond"]
|