-
-
Notifications
You must be signed in to change notification settings - Fork 305
Expand file tree
/
Copy pathDockerfile.sq-matrix
More file actions
26 lines (20 loc) · 697 Bytes
/
Copy pathDockerfile.sq-matrix
File metadata and controls
26 lines (20 loc) · 697 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# ARGs before FROM are not available in RUN — must be redeclared after FROM
ARG SQLY=2021
ARG SQLV=3340100
FROM python:3.10-alpine
ARG SQLY
ARG SQLV
RUN apk add build-base uv
RUN wget https://www.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 uv.lock /app/
RUN uv sync --frozen
COPY . /app
CMD ["sh", "-c", "sqlite3 --version; python -c 'import sqlite3;print(sqlite3.sqlite_version)'; uv run pytest tests/"]