use 3.11-slim-bullseye, add missing package

This commit is contained in:
scito
2022-12-29 11:50:19 +01:00
parent 4209a5db3d
commit 833afa7c13
2 changed files with 4 additions and 4 deletions

View File

@@ -82,5 +82,5 @@ jobs:
- name: Image digest
run: |
echo ${{ steps.docker_build_no_qr_reader.outputs.digest }}
echo ${{ steps.docker_build_qr_reader.outputs.digest }}
echo "extract_otp_secret_keys: ${{ steps.docker_build_qr_reader.outputs.digest }}"
echo "extract_otp_secret_keys_no_qr_reader: ${{ steps.docker_build_no_qr_reader.outputs.digest }}"

View File

@@ -1,4 +1,4 @@
FROM python:3.11-bullseye
FROM python:3.11-slim-bullseye
WORKDIR /extract
@@ -6,7 +6,7 @@ COPY . .
ARG RUN_TESTS=true
RUN apt-get update && apt-get install -y libzbar0 python3-opencv nano \
RUN apt-get update && apt-get install -y libzbar0 libsm6 python3-opencv nano \
&& pip install --no-cache-dir -r requirements.txt \
&& if [ "$RUN_TESTS" = "true" ]; then /extract/run_pytest.sh; else echo "Not running tests..."; fi