X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/fcf97961061982656a1384ecc1628e217a52a88c..b21c0c3d28d87bc944a1fdc979b30a0707b0df89:/Dockerfile?ds=sidebyside diff --git a/Dockerfile b/Dockerfile index a03d23a..ce88f0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,16 @@ -FROM python:3 +FROM python:3-slim -ENV PYTHONDONTWRITEBYTECODE 1 -ENV PYTHONUNBUFFERED 1 +# TODO: Remove regex version pin once we get newer arm wheels +RUN mkdir /src +COPY . /src/ +RUN pip install --no-cache-dir --upgrade pip setuptools wheel \ + && apt update && apt install -y git \ + && cd /src \ + && pip install --no-cache-dir regex==2021.10.8 \ + && pip install --no-cache-dir .[colorama,d] \ + && rm -rf /src \ + && apt remove -y git \ + && apt autoremove -y \ + && rm -rf /var/lib/apt/lists/* -RUN pip install --upgrade --no-cache-dir black - -ENTRYPOINT /usr/local/bin/black --check --diff . +CMD ["black"]