PUBLICREADY
Dockerfile
 1
FROM python:3.6-slim-stretch
 2
 3
RUN apt update
 4
RUN apt install -y python3-dev gcc
 5
 6
RUN pip install https://github.com/simonw/datasette/archive/master.zip
 7
RUN pip install csvs-to-sqlite
 8
 9
ADD *.csv csvs/
10
11
RUN csvs-to-sqlite csvs/*.csv csv-data.db
12
13
ADD metadata.json metadata.json
14
15
RUN datasette inspect csv-data.db --inspect-file inspect-data.json
16
17
EXPOSE 8001
18
19
CMD ["datasette", "serve", "csv-data.db", "--host", "0.0.0.0", "--cors", "--port", "8001", "--inspect-file", "inspect-data.json", "-m", "metadata.json"]