forked from openstates/openstates-scrapers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.california
39 lines (34 loc) · 906 Bytes
/
Dockerfile.california
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
37
38
39
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 \
libmariadb-dev \
mariadb-server \
mariadb-client \
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 --extras "california"
ENTRYPOINT ["poetry", "run", "os-update"]