Skip to content

Commit 609745f

Browse files
committed
System: update delphi_web_python Docker image
- merge operations repo delphi_python Dockerfile into delphi_web_python - copy Python requirements file to this directory
1 parent bef5839 commit 609745f

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

dev/docker/python/Dockerfile

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
# start with the `delphi_python` image
2-
FROM delphi_python
2+
FROM python:3.8-buster
3+
4+
# use delphi's timezome
5+
RUN ln -s -f /usr/share/zoneinfo/America/New_York /etc/localtime
6+
7+
# specify a working directory inside the container
8+
WORKDIR /usr/src/app
9+
10+
# install python packages
11+
COPY repos/delphi/delphi-epidata/dev/docker/python/requirements.txt .
12+
RUN pip install --no-cache-dir -r requirements.txt
13+
14+
# copy over all source files
15+
COPY repos repos
16+
RUN chmod -R o+r repos/
17+
18+
# configure the image to match the delphi server
19+
COPY repos/delphi/operations/dev/docker/python/assets/setup.sh .
20+
RUN bash setup.sh
321

422
RUN pip install --no-cache-dir -r repos/delphi/delphi-epidata/requirements.txt -r repos/delphi/delphi-epidata/requirements.dev.txt

dev/docker/python/requirements.txt

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
aiohttp
2+
beautifulsoup4
3+
covidcast
4+
delphi_utils
5+
docker
6+
dropbox
7+
epiweeks
8+
Flask==1.1.2
9+
freezegun
10+
google-api-python-client
11+
lxml
12+
matplotlib
13+
mysql-connector
14+
mysqlclient==2.0.2
15+
newrelic
16+
numpy
17+
orjson==3.4.7
18+
pandas==1.2.3
19+
pycountry
20+
pymysql
21+
pytest
22+
pytest-check
23+
python-dotenv==0.15.0
24+
requests
25+
sas7bdat
26+
scikit-learn
27+
scipy==1.6.2
28+
selenium
29+
SQLAlchemy==1.3.22
30+
structlog
31+
xlrd

0 commit comments

Comments
 (0)