diff options
| author | 2019-09-23 20:16:59 +1000 | |
|---|---|---|
| committer | 2019-09-24 14:51:56 +1000 | |
| commit | 5fdacedccb70b2f549439aaa709beb24e84737c1 (patch) | |
| tree | 1e52ebecf3807c6de9a7dd6f40585d23258f65de /Dockerfile | |
| parent | Add a dev-only compose for new devs who don't have `site`. (diff) | |
Remove unneeded Pipfile scripts and azure stages/vars.
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 33 |
1 files changed, 13 insertions, 20 deletions
diff --git a/Dockerfile b/Dockerfile index aa6333380..21a938c4f 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 . . +COPY docker . -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"] |