forked from nodev-io/nodev-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 654 Bytes
/
Dockerfile
File metadata and controls
27 lines (23 loc) · 654 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
# nodev container
#
# Fill the requirements.txt file.
# Build the docker image once with:
# docker build -t nodev .
# Run the tests with:
# docker run --rm -it -v `pwd`:/src nodev [PYTEST_OPTIONS]
#
FROM python:3
# setup workdir
COPY ./ /src
WORKDIR /src
# setup the python and pytest environments
RUN pip install --upgrade pip setuptools pytest-nodev
RUN pip install --upgrade -r requirements-base.txt
RUN pip install --upgrade -r requirements.txt
ENV PYTEST_NODEV_MODE=FEARLESS
# setup pytest user
RUN adduser --disabled-password --gecos "" --uid 7357 pytest
USER pytest
# setup entry point
ENTRYPOINT ["py.test"]
CMD ["--candidates-from-all"]