File: Containerfile-alpine

package info (click to toggle)
python-sdbus 0.14.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,000 kB
  • sloc: python: 7,966; ansic: 2,512; makefile: 9; sh: 4
file content (22 lines) | stat: -rw-r--r-- 518 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM docker.io/alpine

COPY ../../src /root/python-sdbus/src
COPY ../../test /root/python-sdbus/test
COPY ../../setup.py ../../README.md /root/python-sdbus/

RUN apk update && \
    apk upgrade && \
    apk add python3 \
        py3-setuptools \
        python3-dev \
        elogind-dev \
        musl-dev \
        gcc \
        pkgconfig \
        dbus \
        py3-jinja2

WORKDIR /root/python-sdbus/

CMD python3 setup.py build --build-lib build-lib && \
    PYTHONPATH=./build-lib python3 -m unittest --verbose