]> git.madduck.net Git - etc/vim.git/blobdiff - Dockerfile

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Pin regex in docker to 2021.10.8 (GH-2579)
[etc/vim.git] / Dockerfile
index a03d23a10782f09ea291c3a67880a758a5bef692..ce88f0ce5e30d1aff4c28f097f6ce501fbf31d49 100644 (file)
@@ -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"]