fp/apps/twscrape/Dockerfile.sq-matrix
CJ_Clippy de5a4c11b2 git subrepo clone https://github.com/vladkens/twscrape ./apps/twscrape
subrepo:
  subdir:   "apps/twscrape"
  merged:   "e4dce5d3"
upstream:
  origin:   "https://github.com/vladkens/twscrape"
  branch:   "main"
  commit:   "e4dce5d3"
git-subrepo:
  version:  "0.4.9"
  origin:   "???"
  commit:   "???"
2025-03-11 08:51:36 -08:00

22 lines
582 B
Docker

FROM python:3.10-alpine
RUN apk add build-base
ARG SQLY=2021
ARG SQLV=3340100
RUN wget https://sqlite.org/${SQLY}/sqlite-autoconf-${SQLV}.tar.gz -O sqlite.tar.gz \
&& tar xvfz sqlite.tar.gz \
&& cd sqlite-autoconf-${SQLV} \
&& ./configure --prefix=/usr/local --build=aarch64-unknown-linux-gnu \
&& make \
&& make install \
&& cd .. \
&& rm -rf sqlite*
WORKDIR /app
COPY pyproject.toml readme.md /app/
RUN pip install -e .[dev]
COPY . /app
CMD ["sh", "-c", "sqlite3 --version; python -c 'import sqlite3;print(sqlite3.sqlite_version)'; pytest tests/"]