Debian Codegraph @

Dockerfile

raw
1 FROM python:3.11-slim-bookworm AS build
2
3 # Version of Datasette to install, e.g. 0.55
4 # docker build . -t datasette --build-arg VERSION=0.55
5 ARG VERSION
6
7 RUN apt-get update && \
8 apt-get install -y --no-install-recommends libsqlite3-mod-spatialite && \
9 apt clean && \
10 rm -rf /var/lib/apt && \
11 rm -rf /var/lib/dpkg/info/*
12
13 RUN pip install https://github.com/simonw/datasette/archive/refs/tags/${VERSION}.zip && \
14 find /usr/local/lib -name '__pycache__' | xargs rm -r && \
15 rm -rf /root/.cache/pip
16
17 EXPOSE 8001
18 CMD ["datasette"]