-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile.template
More file actions
28 lines (22 loc) · 907 Bytes
/
Copy pathDockerfile.template
File metadata and controls
28 lines (22 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:%%PY_VERSION%%-alpine
# Install packages
RUN apk add --no-cache libcurl
# Needed for pycurl
ENV PYCURL_SSL_LIBRARY=openssl
RUN apk add --no-cache --virtual .build-dependencies build-base curl-dev \
&& pip install pycurl \
&& apk del .build-dependencies
RUN pip install --upgrade pip
RUN pip install flake8 pytest coverage
COPY requirements.txt /tmp/requirements.txt
#RUN pip install --no-cache-dir -r /tmp/requirements.txt
COPY . /resttest3
WORKDIR /resttest3
RUN python setup.py bdist_wheel
RUN pip install -U dist/*
RUN flake8 resttest3 --count --select=E9,F63,F7,F82 --show-source --statistics
RUN flake8 resttest3 --count --exit-zero --max-complexity=30 --max-line-length=127 --statistics
# RUN python -m pytest tests
RUN coverage run --source resttest3 -m pytest tests/test_*.py
RUN coverage report
RUN resttest3 --url https://www.courtlistener.com --test tests/fun_test.yaml