-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (25 loc) · 780 Bytes
/
Copy pathDockerfile
File metadata and controls
30 lines (25 loc) · 780 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
28
29
30
ARG PYTHON_VERSION=3.8
FROM python:${PYTHON_VERSION} AS build
# install dependencies
RUN pip install --upgrade pip
COPY requirements*.txt /app/
RUN for reqs in /app/requirements*.txt; do pip install --no-cache-dir -r $reqs; done
# configure and executes build
COPY . /app
WORKDIR /app
# TODO: Add pydocstyle integration
#RUN pydocstyle ${MODULE_NAME}/
RUN echo "Running setup tools..." \
&& python setup.py \
pylint \
isort \
flake8 \
pytest \
sdist \
bdist_wheel \
&& export CI=True \
&& echo "Finished running setup tools..."
RUN echo "Running mypy static analysis tool..." \
&& mypy gitinsights
# executes code coverage upload to codecov.io
CMD ["/bin/bash", "-c", "bash <(curl -s https://codecov.io/bash)"]