-
-
Save simonw/365294fb51765fb07bc99fe5eb7fee22 to your computer and use it in GitHub Desktop.
Dockerfile used by Datasette Publish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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