Create a gist now

Instantly share code, notes, and snippets.

@simonw /Dockerfile Secret
Created Jan 17, 2018

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 https://github.com/simonw/datasette/archive/master.zip
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
EXPOSE 8001
CMD ["datasette", "serve", "csv-data.db", "--host", "0.0.0.0", "--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