fix dockerfile and add arm for testing

This commit is contained in:
Thephaseless 2024-11-24 22:13:47 +00:00
parent 9420edffec
commit 278abf1b86
2 changed files with 11 additions and 14 deletions

View File

@ -23,6 +23,12 @@ env:
jobs:
test:
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -67,13 +73,6 @@ jobs:
# with sigstore/fulcio when running outside of PRs.
id-token: write
strategy:
fail-fast: false
matrix:
platform:
- linux/amd64
- linux/arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4

View File

@ -1,4 +1,4 @@
FROM python:3.12-alpine
FROM python:3.12-slim
# Inspired by https://github.com/Hudrolax/uc-docker-alpine/
@ -16,14 +16,12 @@ ENV \
POETRY_VIRTUALENVS_IN_PROJECT=true \
DISPLAY=:0
# Install build dependencies
RUN apk update && apk upgrade && apk add --no-cache \
xvfb \
chromium
WORKDIR /app
EXPOSE 8191
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb ./
RUN apt update &&\
apt install -y xvfb scrot python3-tk curl ./google-chrome-stable_current_amd64.deb &&\
rm ./google-chrome-stable_current_amd64.deb
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="${HOME}/.local/bin:$PATH"