-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtests.Dockerfile
More file actions
26 lines (21 loc) · 780 Bytes
/
tests.Dockerfile
File metadata and controls
26 lines (21 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
# Helper for running arbitary Python versions
#
# It's easiest to run this with the included script (test_in_docker.sh)
# See doc/DOCKER.md for more info.
ARG PYTHON_VERSION
FROM python:${PYTHON_VERSION} AS base
WORKDIR /app
# Core project files required to run the program / tests
COPY ./fontknife/ ./fontknife/
COPY ./tests/ ./testse/
COPY ./pyproject.toml ./
# A helper test script
COPY ./container.sh .
RUN chmod +x container.sh
# Since the environment is disposable, the easiest option with Docker
# is to skip a virtual environment.
RUN python -m pip install --upgrade pip wheel setuptools
RUN python -m pip install -e .[dev]
# Set the container to run the helper script unless
# otherwise specified by docker run -i -t $YOUR_COMMAND_HERE
CMD [ "bash", "container.sh" ]