parent
5469b1cdf3
commit
fe46b8d4ef
@ -0,0 +1,22 @@
|
||||
FROM python:3.7-slim
|
||||
|
||||
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
|
||||
|
||||
USER edmond
|
||||
ENTRYPOINT ["python", "-m", "edmond"]
|
Loading…
Reference in new issue