File: Dockerfile.lintian-brush

package info (click to toggle)
debian-codemods 0.171
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,312 kB
  • sloc: makefile: 888; xml: 119; python: 80; sh: 69; javascript: 3
file content (15 lines) | stat: -rw-r--r-- 758 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM debian:sid-slim AS build
RUN apt -y update && apt install -y git dctrl-tools
COPY . /code
WORKDIR /code
RUN apt satisfy -y "$(grep-dctrl -n -w -s Build-Depends '' /code/debian/control)"
RUN cargo build --release -p lintian-brush
RUN ./setup.py build_ext -i

FROM debian:sid-slim
RUN apt -y update && apt satisfy -y python3-all-dev python3-debian python3-breezy python3-debmutate python3-distro-info python3-upstream-ontologist python3-ruamel.yaml python3-psycopg2 python3-semver python3-tomlkit python3-levenshtein python3-iso8601 python3-iniparse
COPY --from=build /code/target/release/lintian-brush /lintian-brush
COPY lintian-brush/fixers /usr/share/lintian-brush/fixers
ENV PYTHONPATH=/code
VOLUME /data
ENTRYPOINT ["/lintian-brush", "-d", "/data"]