aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile35
1 files changed, 35 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..864b4e557
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,35 @@
+FROM python:3.7-alpine3.7
+
+RUN apk add --no-cache \
+ build-base \
+ freetype-dev \
+ git \
+ jpeg-dev \
+ libffi-dev \
+ libxml2 \
+ libxml2-dev \
+ libxslt-dev \
+ tini \
+ zlib \
+ zlib-dev
+
+ENV \
+ LIBRARY_PATH=/lib:/usr/lib \
+ PIPENV_HIDE_EMOJIS=1 \
+ PIPENV_HIDE_EMOJIS=1 \
+ PIPENV_IGNORE_VIRTUALENVS=1 \
+ PIPENV_IGNORE_VIRTUALENVS=1 \
+ PIPENV_NOSPIN=1 \
+ PIPENV_NOSPIN=1 \
+ PIPENV_VENV_IN_PROJECT=1 \
+ PIPENV_VENV_IN_PROJECT=1
+
+RUN pip install -U pipenv
+
+WORKDIR /bot
+COPY . .
+
+RUN pipenv install --deploy --system
+
+ENTRYPOINT ["/sbin/tini", "--"]
+CMD ["pipenv", "run", "start"]