From c42438bf38cd1deffe8e3c7c8758b85ed670513e Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Tue, 9 Oct 2018 00:28:05 -0700 Subject: [PATCH] Add Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e745b71 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3 + +WORKDIR /usr/src/app + +COPY requirements.txt /usr/src/app/ +RUN pip install --no-cache-dir -r requirements.txt + +COPY . /usr/src/app/ + +RUN groupadd -r -g 200 bot \ + && useradd -mr -g bot -u 200 bot +USER bot + +VOLUME ["/home/bot/.phenny"] + +CMD ["/usr/src/app/phenny"]