diff options
author | 2019-01-12 14:31:25 +0100 | |
---|---|---|
committer | 2019-01-12 14:31:25 +0100 | |
commit | 445e44731b632f05a74e652029d3d98ef083ced0 (patch) | |
tree | ecb7798ea2cb03e7caa79d1b663750ebeda16039 /Dockerfile | |
parent | Support obtaining individual rules via `!site rules` command. (diff) |
Use a single `Dockerfile` instead of two.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..983a226e4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,32 @@ +FROM python:3.7-alpine3.7 + +RUN apk add --update tini +RUN apk add --update build-base +RUN apk add --update libffi-dev +RUN apk add --update zlib +RUN apk add --update jpeg-dev +RUN apk add --update libxml2 libxml2-dev libxslt-dev +RUN apk add --update zlib-dev +RUN apk add --update freetype-dev +RUN apk add --update git + +ENV LIBRARY_PATH=/lib:/usr/lib +ENV PIPENV_VENV_IN_PROJECT=1 +ENV PIPENV_IGNORE_VIRTUALENVS=1 +ENV PIPENV_NOSPIN=1 +ENV PIPENV_HIDE_EMOJIS=1 +ENV PIPENV_VENV_IN_PROJECT=1 +ENV PIPENV_IGNORE_VIRTUALENVS=1 +ENV PIPENV_NOSPIN=1 +ENV PIPENV_HIDE_EMOJIS=1 + +RUN pip install -U pipenv + +RUN mkdir -p /bot +COPY . /bot +WORKDIR /bot + +RUN pipenv install --deploy --system + +ENTRYPOINT ["/sbin/tini", "--"] +CMD ["pipenv", "run", "start"] |