Skip to content

Commit

Permalink
Install requirements-escrow.txt in Dockerfile
Browse files Browse the repository at this point in the history
Bumped docker image in size on 100MB, because eospy requirement is a
particular commit with a license and it needs to install git to download it.

Signed-off-by: alfred richardsn <rchrdsn@protonmail.ch>
  • Loading branch information
r4rdsn committed May 13, 2020
1 parent 150b22a commit 2158ea2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM python:3.8-slim-buster

LABEL mantainer="alfred richardsn <rchrdsn@protonmail.ch>"

RUN apt-get update && apt-get install --yes --no-install-recommends git

ARG USER=tellerbot
ARG GROUP=tellerbot

Expand All @@ -12,9 +14,11 @@ RUN groupadd -g 999 $GROUP \
WORKDIR $HOME
USER $USER:$GROUP

COPY --chown=999:999 requirements.txt .
COPY --chown=999:999 requirements.txt requirements-escrow.txt ./
ENV PATH $PATH:$HOME/.local/bin
RUN pip install --user --no-cache-dir --requirement requirements.txt
RUN pip install --user --no-cache-dir \
--requirement requirements.txt \
--requirement requirements-escrow.txt

COPY --chown=999:999 locale/ locale/
RUN pybabel compile --directory=locale/ --domain=bot
Expand Down

0 comments on commit 2158ea2

Please sign in to comment.