]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/black/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:

Merge commit '882d8795c6ff65c02f2657e596391748d1b6b7f5'
[etc/vim.git] / .vim / bundle / black / Dockerfile
1 FROM python:3.11-slim AS builder
2
3 RUN mkdir /src
4 COPY . /src/
5 ENV VIRTUAL_ENV=/opt/venv
6 RUN python -m venv $VIRTUAL_ENV
7 RUN . /opt/venv/bin/activate && pip install --no-cache-dir --upgrade pip setuptools wheel \
8     # Install build tools to compile dependencies that don't have prebuilt wheels
9     && apt update && apt install -y git build-essential \
10     && cd /src \
11     && pip install --no-cache-dir .[colorama,d]
12
13 FROM python:3.11-slim
14
15 # copy only Python packages to limit the image size
16 COPY --from=builder /opt/venv /opt/venv
17 ENV PATH="/opt/venv/bin:$PATH"
18
19 CMD ["/opt/venv/bin/black"]