File: Dockerfile

package info (click to toggle)
python-mercantile 1.2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 280 kB
  • sloc: python: 1,504; makefile: 211; sh: 4
file content (24 lines) | stat: -rw-r--r-- 475 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# To develop in a reproducible dev environment
#
# 1. build the docker image
#
#   docker build -t mapbox/mercantile .
#
# 2. mount the source into the container and run tests
#
#   docker run --rm -v $PWD:/usr/src/app mapbox/mercantile


FROM python:3.9-slim

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install pytest-cov~=2.8 pytest~=5.3.0

COPY . .

RUN pip install -e .[test]

CMD ["python", "-m", "pytest"]