20 lines
472 B
Plaintext
Executable File
20 lines
472 B
Plaintext
Executable File
ARG BASE_ROOT="nexus.iqser.com:5001/red/"
|
|
ARG VERSION_TAG="dev"
|
|
|
|
FROM ${BASE_ROOT}pyinfra:${VERSION_TAG}
|
|
|
|
EXPOSE 5000
|
|
EXPOSE 8080
|
|
|
|
RUN python3 -m pip install coverage
|
|
|
|
# Make a directory for the service files and copy the service repo into the container.
|
|
WORKDIR /app/service
|
|
COPY . .
|
|
|
|
# Install module & dependencies
|
|
RUN python3 -m pip install -e .
|
|
RUN python3 -m pip install -r requirements.txt
|
|
|
|
CMD coverage run -m pytest test/ -x && coverage report -m && coverage xml
|