aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-10-01 11:48:31 -0400
committerGravatar S. Co1 <[email protected]>2019-10-01 11:49:03 -0400
commit29559a296c32ba1dbcc6125d88f6eba37db934a7 (patch)
tree5d4444a1e1600b03974dab8cae388f887ed261fb /Dockerfile
parentlinter is the bane of my existence (diff)
parentUpdate contrib doc for new wiki links (#470) (diff)
Merge branch 'master' into add-role-info-command
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile31
1 files changed, 12 insertions, 19 deletions
diff --git a/Dockerfile b/Dockerfile
index aa6333380..271c25050 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,27 +1,20 @@
-FROM python:3.7-alpine3.7
+FROM python:3.7-slim
-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
+# Set pip to have cleaner logs and no saved cache
+ENV PIP_NO_CACHE_DIR=false \
+ PIPENV_HIDE_EMOJIS=1 \
+ PIPENV_IGNORE_VIRTUALENVS=1 \
+ PIPENV_NOSPIN=1
+# Install pipenv
RUN pip install -U pipenv
+# Copy project files into working directory
WORKDIR /bot
COPY . .
-RUN pipenv install --deploy --system
+# Install project dependencies
+RUN pipenv install --system --deploy
-ENTRYPOINT ["/sbin/tini", "--"]
-CMD ["python3", "-m", "bot"]
+ENTRYPOINT ["python3"]
+CMD ["-m", "bot"]