Unibeautify / docker-beautifiers

Docker images for code beautifiers/formatters
MIT License
23 stars 13 forks source link

Version of latest docker build #51

Open ruben-arts opened 4 years ago

ruben-arts commented 4 years ago

We wanted to use the latest version of the image of your black. But that image is running 19.3b0 which is not the latest version when u install black locally.

When trying to build our own version we encountered a problem with the installation. You first need to add:

RUN apk add --no-cache --update gcc build-base

So the Dockerfile would look like this:

FROM python:3-alpine

LABEL io.whalebrew.name 'black'
LABEL io.whalebrew.config.working_dir '/workdir'
WORKDIR /workdir

RUN apk add --no-cache --update gcc build-base
RUN pip install --upgrade black

ENTRYPOINT ["black"]
CMD ["--help"]

After building this you have the newest version of black at your disposal :+1:

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label feature_request to this issue, with a confidence of 0.55. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Rayman commented 4 years ago

I've implemented your idea into the following PR: https://github.com/Unibeautify/docker-beautifiers/pull/52