-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a Dockerfile and adds instructions in GoReleaser config to build…
… and publish `mllint` Docker images for Python 3.6, 3.7, 3.8 and 3.9
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG python_version=3.9 | ||
FROM python:${python_version}-alpine | ||
WORKDIR /mllint | ||
|
||
RUN apk update && apk add --no-cache gcc musl-dev python3-dev libffi-dev libgit2-dev | ||
|
||
COPY build/requirements-tools.txt . | ||
RUN pip install --no-cache-dir -r requirements-tools.txt | ||
|
||
COPY mllint . | ||
|
||
WORKDIR /app | ||
VOLUME /app | ||
ENTRYPOINT [ "/mllint/mllint" ] |