forked from openstates/openstates-scrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (31 loc) · 815 Bytes
/
Dockerfile
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
31
32
33
34
35
36
FROM python:3.9-slim
LABEL maintainer="James Turk <[email protected]>"
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 PYTHONIOENCODING='utf-8' LANG='C.UTF-8'
RUN apt update && apt install -y --no-install-recommends \
git \
build-essential \
curl \
unzip \
libssl-dev \
libffi-dev \
freetds-dev \
python3-virtualenv \
libxml2-dev \
libxslt-dev \
libyaml-dev \
poppler-utils \
libpq-dev \
libgdal-dev \
libgeos-dev \
wget \
unzip \
# libcrypto1.1 \
mdbtools && \
rm -rf /var/lib/apt/lists/*
ADD . /opt/openstates/openstates
WORKDIR /opt/openstates/openstates/
ENV PYTHONPATH=./scrapers
RUN set -ex \
&& pip install poetry \
&& poetry install
ENTRYPOINT ["poetry", "run", "os-update"]