Skip to content

Commit e5261c8

Browse files
committed
Removed python 3.8 and dockerfile
1 parent dd6ecc1 commit e5261c8

2 files changed

Lines changed: 32 additions & 5 deletions

File tree

.github/workflows/sqlite_build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [macos-latest, windows-latest, ubuntu-latest]
12-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.8', 'pypy-3.9', 'pypy3.10', 'pypy3.11',
12+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', 'pypy-3.9', 'pypy3.10', 'pypy3.11',
1313
'3.13t']
1414

1515
steps:

Dockerfile

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
1-
FROM python:3.10.5-slim as base
1+
FROM python:3-slim AS base
22

3+
ARG USERNAME=sqliteuser
4+
ARG UID=1001
5+
ARG GID=1001
6+
ARG HOME_DIR=/home/${USERNAME}
7+
8+
# Upgrade OS packages
9+
RUN set -ex \
10+
&& apt-get update \
11+
&& apt-get upgrade -y \
12+
&& apt-get autoremove -y \
13+
&& apt-get clean \
14+
&& rm -rf /var/lib/apt/lists/*
15+
16+
# Create the group and user
17+
RUN groupadd --gid ${GID} ${USERNAME} \
18+
&& useradd -m -u ${UID} -g ${GID} -d ${HOME_DIR} -s /bin/bash ${USERNAME}
19+
20+
RUN chown ${USER_NAME}:${USERNAME} ${HOME_DIR}
21+
22+
FROM base AS builder
323
COPY . /sqlite_rx
424

525
WORKDIR /svc
@@ -10,10 +30,17 @@ RUN pip install wheel && pip wheel --wheel-dir=/svc/wheels /sqlite_rx[cli]
1030
RUN rm -rf /sqlite_rx
1131

1232

13-
FROM python:3.10.5-slim
33+
FROM base
1434

15-
COPY --from=base /svc /svc
35+
COPY --from=builder /svc /svc
1636
WORKDIR /svc
1737

1838
RUN pip install --upgrade pip
19-
RUN pip install --no-index /svc/wheels/*.whl
39+
RUN pip install --no-index /svc/wheels/*.whl
40+
41+
USER ${USERNAME}
42+
WORKDIR ${HOME_DIR}
43+
44+
45+
46+

0 commit comments

Comments
 (0)