Skip to content

Instantly share code, notes, and snippets.

Created January 17, 2018 06:12
What would you like to do?
Dockerfile used by Datasette Publish
FROM python:3.6-slim-stretch
RUN apt update
RUN apt install -y python3-dev gcc
RUN pip install
RUN pip install csvs-to-sqlite
ADD *.csv csvs/
RUN csvs-to-sqlite csvs/*.csv csv-data.db
ADD metadata.json metadata.json
RUN datasette inspect csv-data.db --inspect-file inspect-data.json
CMD ["datasette", "serve", "csv-data.db", "--host", "", "--cors", "--port", "8001", "--inspect-file", "inspect-data.json", "-m", "metadata.json"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment